diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-25 19:12:44 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-25 19:12:44 +0200 |
commit | cb3ee1e4211656a598f8a20510a262667c94f448 (patch) | |
tree | cd553dc1591e14e04facafe9cfd9eacd70bde107 | |
parent | 6bc0d0411ca14b6be30b450d400a494633193735 (diff) | |
download | ceph-cb3ee1e4211656a598f8a20510a262667c94f448.tar.gz |
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 <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/rgw/rgw_metadata.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rgw/rgw_metadata.h b/src/rgw/rgw_metadata.h index 2cc9110191a..855d78e159a 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); |