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:
Xavier Deguillard 2021-02-22 22:38:29 -08:00 committed by Facebook GitHub Bot
parent 79888e20b4
commit c9bfb4b2f7
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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());
});