]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: lease_stack: use reset method instead of assignment 16711/head
authorNathan Cutler <ncutler@suse.com>
Thu, 6 Jul 2017 18:17:49 +0000 (20:17 +0200)
committerCasey Bodley <cbodley@redhat.com>
Mon, 31 Jul 2017 19:22:57 +0000 (15:22 -0400)
It seems that the intent of 45877d38fd9a385b2f8b13e90be94d784898b0b3 was to
change all instances of "lease_stack = ..." to "lease_stack.reset(...)", but
this one was missed.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit fc425afeb2e2a6ba3c98c612b3977aea619c9f73)

src/rgw/rgw_sync.cc

index b694f739e10da5cfd0d12a83319d1c8befbc568d..1609bd950facbfd4702b658ed7013da0e38b070f 100644 (file)
@@ -788,7 +788,7 @@ public:
         string lock_name = "sync_lock";
        lease_cr.reset(new RGWContinuousLeaseCR(sync_env->async_rados, sync_env->store, sync_env->store->get_zone_params().log_pool, sync_env->status_oid(),
                                                 lock_name, lock_duration, this));
-        lease_stack = spawn(lease_cr.get(), false);
+        lease_stack.reset(spawn(lease_cr.get(), false));
       }
       while (!lease_cr->is_locked()) {
         if (lease_cr->is_done()) {