From cb3ee1e4211656a598f8a20510a262667c94f448 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 25 Jul 2013 19:12:44 +0200 Subject: [PATCH] rgw/rgw_metadata.h: init prefix in initialization list 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 --- src/rgw/rgw_metadata.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rgw/rgw_metadata.h b/src/rgw/rgw_metadata.h index 2cc9110191aab..855d78e159aea 100644 --- a/src/rgw/rgw_metadata.h +++ b/src/rgw/rgw_metadata.h @@ -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); -- 2.39.5