From: Nathan Cutler Date: Thu, 6 Jul 2017 18:17:49 +0000 (+0200) Subject: rgw: lease_stack: use reset method instead of assignment X-Git-Tag: v12.1.1~95^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16185%2Fhead;p=ceph.git rgw: lease_stack: use reset method instead of assignment 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 --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 144b72bd7a8..bef949a53b0 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -835,7 +835,7 @@ public: sync_env->store, rgw_raw_obj(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()) {