From fc425afeb2e2a6ba3c98c612b3977aea619c9f73 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Thu, 6 Jul 2017 20:17:49 +0200 Subject: [PATCH] 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 --- src/rgw/rgw_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 144b72bd7a8f..bef949a53b0c 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()) { -- 2.47.3