From 00076a6971a6bd97d03fceec4a1c7320088d4012 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 26 Oct 2013 11:44:18 +0200 Subject: [PATCH] move initializations for clarity --- src/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sync.c b/src/sync.c index bf48b7d..209a2b1 100644 --- a/src/sync.c +++ b/src/sync.c @@ -1094,8 +1094,6 @@ box_loaded( int sts, void *aux ) if ((t == S) && svars->smaxxuid) { debug( "preparing master selection - max expired slave uid is %d\n", svars->smaxxuid ); - mexcs = 0; - nmexcs = rmexcs = 0; minwuid = INT_MAX; for (srec = svars->srecs; srec; srec = srec->next) { if (srec->status & S_DEAD) @@ -1113,6 +1111,8 @@ box_loaded( int sts, void *aux ) minwuid = srec->uid[M]; } debug( " min non-orphaned master uid is %d\n", minwuid ); + mexcs = 0; + nmexcs = rmexcs = 0; for (srec = svars->srecs; srec; srec = srec->next) { if (srec->status & S_DEAD) continue;