From f8804b34a48c14a6c6294f2ed3c4bfa40a512d8c Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 23 Feb 2016 13:07:36 -0500 Subject: [PATCH] rgw: make RGWMetadataLog::get_shard_oid public and const Signed-off-by: Casey Bodley --- src/rgw/rgw_metadata.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/rgw/rgw_metadata.h b/src/rgw/rgw_metadata.h index d4e511e42ac8e..ff3efa2973260 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); -- 2.39.5