]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/common: fix C_ObserverRefresh constructor
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 9 Jun 2011 21:02:27 +0000 (14:02 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 9 Jun 2011 21:03:31 +0000 (14:03 -0700)
Fixes #1159

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/tools/common.cc

index b368965e128ab5c8bcaa1c7858981937b9c6d318..5e42bfd7f498766ca8c36a46aa5d0da3c7e7dfd4 100644 (file)
@@ -245,7 +245,7 @@ void send_observe_requests(CephToolCtx *ctx)
   registered.clear();
   float seconds = g_conf->paxos_observer_timeout/2;
   dout(1) << " refresh after " << seconds << " with same mon" << dendl;
-  ctx->timer.add_event_after(seconds, new C_ObserverRefresh(ctx, false));
+  ctx->timer.add_event_after(seconds, new C_ObserverRefresh(false, ctx));
 }
 
 static void handle_ack(CephToolCtx *ctx, MMonCommandAck *ack)