mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
aa45fa2cb7
Summary: Add a periodic task to reload the configuration file from disk. By default this runs once every 5 minutes, but this interval can be controlled from the config file. At the moment reloading the config file does not do much other than update the interval for how frequently the config file is reloaded. However, I plan to add additional periodic tasks shortly that are controlled by this config setting. This will also make it possible for other parts of the code to access the config settings in the `ServerState` and use them as-is without checking to see if they reloaded. Currently all of the code that accesses config values performs a check to see if the config needs to be reloaded. If we want to switch to Mercurial-style configs in the future that check will be substantially more expensive. This diff also includes a new thrift call to force the config file to be reloaded immediately. This can be used to restart automatic config reloading if it is ever disabled in the config file. Reviewed By: wez Differential Revision: D15756357 fbshipit-source-id: 1999f4730903633ce838842932a6ae6a65eda4e6 |
||
---|---|---|
.. | ||
test | ||
CachedParsedFileMonitor.h | ||
CheckoutConfig.cpp | ||
CheckoutConfig.h | ||
CMakeLists.txt | ||
ConfigSetting.h | ||
eden_config.thrift | ||
EdenConfig.cpp | ||
EdenConfig.h | ||
FieldConverter.cpp | ||
FieldConverter.h | ||
FileChangeMonitor.cpp | ||
FileChangeMonitor.h | ||
ReloadableConfig.cpp | ||
ReloadableConfig.h |