Skip to content

Commit

Permalink
rgw: Class member cookie is not initialized correctly in
Browse files Browse the repository at this point in the history
RGWInitBucketShardSyncStatusCoroutine and RGWInitDataSyncStatusCoroutine.

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
  • Loading branch information
Zhang Shaowen committed Oct 31, 2016
1 parent fb64281 commit b77d4fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rgw/rgw_data_sync.cc
Expand Up @@ -477,7 +477,7 @@ class RGWInitDataSyncStatusCoroutine : public RGWCoroutine {
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);
}
Expand Down Expand Up @@ -1762,7 +1762,7 @@ class RGWInitBucketShardSyncStatusCoroutine : public RGWCoroutine {
char buf[COOKIE_LEN + 1];

gen_rand_alphanumeric(cct, buf, sizeof(buf) - 1);
string cookie = buf;
cookie = buf;

sync_status_oid = RGWBucketSyncStatusManager::status_oid(sync_env->source_zone, bs);
}
Expand Down

0 comments on commit b77d4fe

Please sign in to comment.