]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: make RGWMetadataLog::get_shard_oid public and const
authorCasey Bodley <cbodley@redhat.com>
Tue, 23 Feb 2016 18:07:36 +0000 (13:07 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 4 Mar 2016 22:04:08 +0000 (17:04 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_metadata.h

index d4e511e42ac8eb080e71402dbe39ac45065ee572..ff3efa29732603f7995a7567f8ba23bae7663f6c 100644 (file)
@@ -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<int> 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<cls_log_entry>& entries, int shard_id, librados::AioCompletion *completion);