From 77c71ccf092ef1d9276389a2fb52665829a24b48 Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 23 Oct 2013 16:18:00 +0100 Subject: [PATCH] mirror: Ensure the bitset is actually disabled on mirror error --- src/mirror.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mirror.c b/src/mirror.c index acc5144..728a883 100644 --- a/src/mirror.c +++ b/src/mirror.c @@ -819,12 +819,11 @@ void mirror_run( struct server *serve ) * call retries the migration from scratch. */ if ( m->commit_state != MS_DONE ) { - error( "Event loop exited, but mirroring is not complete" ); - /* mirror_reset will be called before a retry, so keeping hold of events * between now and our next mirroring attempt is not useful */ bitset_disable_stream( serve->allocation_map ); + error( "Event loop exited, but mirroring is not complete" ); } return;