diff options
author | Simon Rettberg | 2014-12-29 16:38:16 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-12-29 16:38:16 +0100 |
commit | e4b81e35c86b21b2c88db8223025d7dde2821fd8 (patch) | |
tree | 92daee508847836ab3bff902d61344d2b5e24ce3 /src/server/globals.h | |
parent | [SERVER] Fix new sendfile handling, wake up uplink thread if server should be... (diff) | |
download | dnbd3-e4b81e35c86b21b2c88db8223025d7dde2821fd8.tar.gz dnbd3-e4b81e35c86b21b2c88db8223025d7dde2821fd8.tar.xz dnbd3-e4b81e35c86b21b2c88db8223025d7dde2821fd8.zip |
[SERVER] Add setting to enable/disable background replication, add comments to config and code
Diffstat (limited to 'src/server/globals.h')
-rw-r--r-- | src/server/globals.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/globals.h b/src/server/globals.h index 037cd08..d9a299d 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -177,6 +177,12 @@ extern int _uplinkTimeout; */ extern int _clientTimeout; +/** + * Should we replicate incomplete images in the background? + * Otherwise, only blocks that were explicitly requested will be cached. + */ +extern int _backgroundReplication; + void globals_loadConfig(); #endif /* GLOBALS_H_ */ |