From 86d4266744f9900ff9435d21bf7458109b393b8d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 13 Sep 2022 15:40:56 +0200 Subject: [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. --- src/server/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ); -- cgit v1.2.3-55-g7522