summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-06-23 22:34:24 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-06-23 22:34:24 -0700
commit76228caf65627fff1845289687380706d24a14aa (patch)
treeee8787c9bab532cab303fbbae4a5c86985c94789
parent5dd137ace403f8fe3fc1770acff862e4a5abd9d2 (diff)
downloadceph-76228caf65627fff1845289687380706d24a14aa.tar.gz
rgw: data log contains bucket instance info in key
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_bucket.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc
index d7ca725c83a..419f40b5c2d 100644
--- a/src/rgw/rgw_bucket.cc
+++ b/src/rgw/rgw_bucket.cc
@@ -1016,7 +1016,7 @@ int RGWDataChangesLog::renew_entries()
rgw_data_change change;
bufferlist bl;
change.entity_type = ENTITY_TYPE_BUCKET;
- change.key = bucket.name;
+ change.key = bucket.name + ":" + bucket.bucket_id;
change.timestamp = ut;
::encode(change, bl);
@@ -1137,7 +1137,7 @@ int RGWDataChangesLog::add_entry(rgw_bucket& bucket) {
bufferlist bl;
rgw_data_change change;
change.entity_type = ENTITY_TYPE_BUCKET;
- change.key = bucket.name;
+ change.key = bucket.name + ":" + bucket.bucket_id;
change.timestamp = now;
::encode(change, bl);
string section;