From eb4f0acf95a93b5123dc9160d8975818abd1994c Mon Sep 17 00:00:00 2001 From: Zhang Shaowen Date: Fri, 28 Oct 2016 11:43:33 +0800 Subject: [PATCH] rgw: Class member cookie is not initialized correctly in RGWInitBucketShardSyncStatusCoroutine and RGWInitDataSyncStatusCoroutine. Signed-off-by: Zhang Shaowen --- src/rgw/rgw_data_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 8d071499addc..3728d8316b3f 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -477,7 +477,7 @@ public: char buf[COOKIE_LEN + 1]; gen_rand_alphanumeric(cct, buf, sizeof(buf) - 1); - string cookie = buf; + cookie = buf; sync_status_oid = RGWDataSyncStatusManager::sync_status_oid(sync_env->source_zone); } -- 2.47.3