From e4b81e35c86b21b2c88db8223025d7dde2821fd8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 29 Dec 2014 16:38:16 +0100 Subject: [SERVER] Add setting to enable/disable background replication, add comments to config and code --- src/server/globals.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server/globals.h') 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_ */ -- cgit v1.2.3-55-g7522