mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
fs: use an nfs request timeout confir
Summary: This is merely fixing a typo that I made previous where I reused the prjfs request timeout instead of adding a new one. Reviewed By: kmancini Differential Revision: D26500110 fbshipit-source-id: b9bf0cbc0d74866cdc2471f126751d6d8e514e21
This commit is contained in:
parent
79888e20b4
commit
c9bfb4b2f7
@ -330,6 +330,16 @@ class EdenConfig : private ConfigSettingManager {
|
||||
std::chrono::minutes(1),
|
||||
this};
|
||||
|
||||
/**
|
||||
* The maximum time duration allowed for a NFS request. If a request exceeds
|
||||
* this amount of time, an NFS3ERR_JUKEBOX error will be returned to the
|
||||
* client to avoid blocking forever.
|
||||
*/
|
||||
ConfigSetting<std::chrono::nanoseconds> nfsRequestTimeout{
|
||||
"nfs:request-timeout",
|
||||
std::chrono::minutes(1),
|
||||
this};
|
||||
|
||||
/**
|
||||
* The maximum time duration allowed for a ProjectedFS callback. If a request
|
||||
* exceeds this amount of time, the request will fail to avoid blocking
|
||||
|
@ -1313,7 +1313,7 @@ folly::Future<folly::Unit> EdenMount::channelMount(bool readOnly) {
|
||||
std::chrono::duration_cast<folly::Duration>(
|
||||
serverState_->getReloadableConfig()
|
||||
.getEdenConfig()
|
||||
->prjfsRequestTimeout.getValue()),
|
||||
->nfsRequestTimeout.getValue()),
|
||||
serverState_->getNotifications(),
|
||||
config_->getCaseSensitive());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user