summaryrefslogtreecommitdiffstats
path: root/src/server/globals.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-02 13:41:35 +0100
committerSimon Rettberg2017-11-02 13:41:35 +0100
commit1587f73c38c9228a1a93889aae6351eff891cbe8 (patch)
tree4a43804793d1c5c3a1d0566c827e7cde8bac3c6b /src/server/globals.h
parent[FUSE] Fix printf warning for logadd call (diff)
downloaddnbd3-1587f73c38c9228a1a93889aae6351eff891cbe8.tar.gz
dnbd3-1587f73c38c9228a1a93889aae6351eff891cbe8.tar.xz
dnbd3-1587f73c38c9228a1a93889aae6351eff891cbe8.zip
[SERVER] Support finer control over replication when a proxy connects to a proxy
Introduce new flag in "select image" message to tell the uplink server whether we have background replication enabled or not. Also reject a connecting proxy if the connecting proxy uses BGR but we don't, as this would basically force the image to be replicated locally too.
Diffstat (limited to 'src/server/globals.h')
-rw-r--r--src/server/globals.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/globals.h b/src/server/globals.h
index 2dbabd5..1475981 100644
--- a/src/server/globals.h
+++ b/src/server/globals.h
@@ -207,6 +207,13 @@ extern bool _closeUnusedFd;
extern bool _backgroundReplication;
/**
+ * (In proxy mode): If connecting client is a proxy, and the requested image
+ * is not known locally, should we ask our known alt servers for it?
+ * Otherwise the request is rejected.
+ */
+extern bool _lookupMissingForProxy;
+
+/**
* Port to listen on (default: #define PORT (5003))
*/
extern int _listenPort;