]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_metadata.h: init prefix in initialization list 467/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 25 Jul 2013 17:12:44 +0000 (19:12 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 25 Jul 2013 17:12:44 +0000 (19:12 +0200)
For performance reasons: init 'prefix' with META_LOG_OBJ_PREFIX
in the initialization list of RGWMetadataLog instead of assigning
the value in the constructor body.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_metadata.h

index 2cc9110191aab2dc1d461e5b15fde0e0816edb10..855d78e159aeaab12062566e6d12f94ac560895b 100644 (file)
@@ -86,9 +86,7 @@ class RGWMetadataLog {
   }
 
 public:
-  RGWMetadataLog(CephContext *_cct, RGWRados *_store) : cct(_cct), store(_store) {
-    prefix = META_LOG_OBJ_PREFIX;
-  }
+  RGWMetadataLog(CephContext *_cct, RGWRados *_store) : cct(_cct), store(_store), prefix(META_LOG_OBJ_PREFIX) {}
 
   int add_entry(RGWRados *store, RGWMetadataHandler *handler, const string& section, const string& key, bufferlist& bl);