diff options
author | Simon Rettberg | 2018-07-10 13:30:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-07-10 13:30:25 +0200 |
commit | ade3c279b973b4c0dbce57e4a403c498285d7db7 (patch) | |
tree | 672e963e3530ad23812a83c5cb4bd23db482c29b | |
parent | [SERVER] Reduce spam some more (diff) | |
download | dnbd3-ade3c279b973b4c0dbce57e4a403c498285d7db7.tar.gz dnbd3-ade3c279b973b4c0dbce57e4a403c498285d7db7.tar.xz dnbd3-ade3c279b973b4c0dbce57e4a403c498285d7db7.zip |
[SERVER] Fix use of wrong constant; increase queue len for hash checker
-rw-r--r-- | src/server/uplink.c | 2 | ||||
-rw-r--r-- | src/serverconfig.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/uplink.c b/src/server/uplink.c index b4fdf99..cefd2ac 100644 --- a/src/server/uplink.c +++ b/src/server/uplink.c @@ -432,7 +432,7 @@ static void* uplink_mainloop(void *data) } else { // Not complete - do measurement altservers_findUplink( link ); // This will set RTT_INPROGRESS (synchronous) - if ( _backgroundReplication == BGR_FULL && link->nextReplicationIndex == REP_NONE ) { + if ( _backgroundReplication == BGR_FULL && link->nextReplicationIndex == -1 ) { link->nextReplicationIndex = 0; } } diff --git a/src/serverconfig.h b/src/serverconfig.h index 677acce..6fcda58 100644 --- a/src/serverconfig.h +++ b/src/serverconfig.h @@ -13,7 +13,7 @@ #define SERVER_BAD_UPLINK_IGNORE 180 // How many seconds is a server ignored #define SERVER_MAX_UPLINK_QUEUE 1500 // Maximum number of queued requests per uplink #define SERVER_UPLINK_QUEUELEN_THRES 900 // Threshold where we start dropping incoming clients -#define SERVER_MAX_PENDING_ALT_CHECKS 50 // Length of queue for pending alt checks requested by uplinks +#define SERVER_MAX_PENDING_ALT_CHECKS 500 // Length of queue for pending alt checks requested by uplinks #define SERVER_CACHE_MAP_SAVE_INTERVAL 90 |