From: Casey Bodley Date: Tue, 23 Feb 2016 18:07:36 +0000 (-0500) Subject: rgw: make RGWMetadataLog::get_shard_oid public and const X-Git-Tag: v10.1.0~222^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f8804b34a48c14a6c6294f2ed3c4bfa40a512d8c;p=ceph.git rgw: make RGWMetadataLog::get_shard_oid public and const Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_metadata.h b/src/rgw/rgw_metadata.h index d4e511e42ac8..ff3efa297326 100644 --- a/src/rgw/rgw_metadata.h +++ b/src/rgw/rgw_metadata.h @@ -150,12 +150,6 @@ class RGWMetadataLog { return META_LOG_OBJ_PREFIX + period + "."; } - void get_shard_oid(int id, string& oid) { - char buf[16]; - snprintf(buf, sizeof(buf), "%d", id); - oid = prefix + buf; - } - RWLock lock; set modified_shards; @@ -166,6 +160,12 @@ public: prefix(make_prefix(period)), lock("RGWMetaLog::lock") {} + void get_shard_oid(int id, string& oid) const { + char buf[16]; + snprintf(buf, sizeof(buf), "%d", id); + oid = prefix + buf; + } + int add_entry(RGWMetadataHandler *handler, const string& section, const string& key, bufferlist& bl); int store_entries_in_shard(list& entries, int shard_id, librados::AioCompletion *completion);