summaryrefslogtreecommitdiffstats
path: root/src/server/uplink.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-13 10:14:57 +0100
committerSimon Rettberg2019-02-13 10:14:57 +0100
commita097dd61ac597905c41630ff4586929a336400e3 (patch)
treec87fc27facad88c8e26151fb62f7b93455981263 /src/server/uplink.c
parent[FUSE] Use shared/timing.* instead of nowMilli/Micro (diff)
downloaddnbd3-a097dd61ac597905c41630ff4586929a336400e3.tar.gz
dnbd3-a097dd61ac597905c41630ff4586929a336400e3.tar.xz
dnbd3-a097dd61ac597905c41630ff4586929a336400e3.zip
[SERVER] Don't shutdown uplink if background replication is FULL
Diffstat (limited to 'src/server/uplink.c')
-rw-r--r--src/server/uplink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/uplink.c b/src/server/uplink.c
index f534994..31b220d 100644
--- a/src/server/uplink.c
+++ b/src/server/uplink.c
@@ -1029,6 +1029,6 @@ static bool uplink_saveCacheMap(dnbd3_connection_t *link)
static bool uplink_connectionShouldShutdown(dnbd3_connection_t *link)
{
- return ( link->idleTime > SERVER_UPLINK_IDLE_TIMEOUT );
+ return ( link->idleTime > SERVER_UPLINK_IDLE_TIMEOUT && _backgroundReplication != BGR_FULL );
}