From 35baf931327c4306a72562d41e2b8f7feca0dd24 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Thu, 14 Mar 2019 22:26:32 +0100 Subject: [PATCH] cls_rgw: fix issue with gc code using the wrong name Also use the correct ptr notation Signed-off-by: Abhishek Lekshmanan --- src/cls/rgw/cls_rgw.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 1f57cceeb35..43f74178f2b 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -757,7 +757,7 @@ static void log_entry(const char *func, const char *str, rgw_bucket_olh_entry *e template static int read_omap_entry(cls_method_context_t hctx, const std::string& name, - T *entry) + T* entry) { bufferlist current_entry; int rc = cls_cxx_map_get_val(hctx, name, ¤t_entry); @@ -776,7 +776,7 @@ static int read_omap_entry(cls_method_context_t hctx, const std::string& name, } template -static int read_index_entry(cls_method_context_t hctx, string& name, T *entry) +static int read_index_entry(cls_method_context_t hctx, string& name, T* entry) { int ret = read_omap_entry(hctx, name, entry); if (ret < 0) { @@ -3179,7 +3179,7 @@ static int gc_omap_get(cls_method_context_t hctx, int type, const string& key, c string index; prepend_index_prefix(key, type, &index); - int ret = read_omap_entry(hctx, key, info); + int ret = read_omap_entry(hctx, index, info); if (ret < 0) return ret; -- 2.39.5