summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2022-09-13 15:40:56 +0200
committerSimon Rettberg2022-09-13 15:40:56 +0200
commit86d4266744f9900ff9435d21bf7458109b393b8d (patch)
tree8a6cba54ae6620bf5bf894ce2d21e8df900ef503 /src
parent[KERNEL] Adapt to Linux 5.18 (diff)
downloaddnbd3-86d4266744f9900ff9435d21bf7458109b393b8d.tar.gz
dnbd3-86d4266744f9900ff9435d21bf7458109b393b8d.tar.xz
dnbd3-86d4266744f9900ff9435d21bf7458109b393b8d.zip
[SERVER] Don't establish uplink when loading image on startup
Bringing up a proxy that has been offline for some time will trigger lots of loads and replication on other proxies when booting up again. Just wait until a client actually needs an image before establishing an uplink connection.
Diffstat (limited to 'src')
-rw-r--r--src/server/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/image.c b/src/server/image.c
index 7e5ea4a..c62be55 100644
--- a/src/server/image.c
+++ b/src/server/image.c
@@ -720,7 +720,7 @@ static bool image_load_all_internal(char *base, char *path)
if ( S_ISDIR( st.st_mode ) ) {
image_load_all_internal( base, subpath ); // Recurse
} else if ( !isForbiddenExtension( subpath ) ) {
- image_load( base, subpath, true ); // Load image if possible
+ image_load( base, subpath, false ); // Load image if possible
}
}
closedir( dir );