From: Zhang Shaowen Date: Fri, 28 Oct 2016 03:43:33 +0000 (+0800) Subject: rgw: Class member cookie is not initialized correctly in X-Git-Tag: v11.1.0~165^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11673%2Fhead;p=ceph.git rgw: Class member cookie is not initialized correctly in RGWInitBucketShardSyncStatusCoroutine and RGWInitDataSyncStatusCoroutine. Signed-off-by: Zhang Shaowen --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 8d071499add..3728d8316b3 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); }