From c43b7dadfc56868bcaab4bc32cf78612fd5ae0e7 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Mon, 18 Mar 2019 14:23:52 +0100 Subject: [PATCH] rgw_orphan: fix detailed mode flag to fix possible member var. hiding Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_orphan.cc | 4 ++-- src/rgw/rgw_orphan.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_orphan.cc b/src/rgw/rgw_orphan.cc index dbadd2ddbc7dd..567bb93b4fd2e 100644 --- a/src/rgw/rgw_orphan.cc +++ b/src/rgw/rgw_orphan.cc @@ -186,7 +186,7 @@ int RGWOrphanStore::read_entries(const string& oid, const string& marker, mapctx()->_conf->rgw_list_bucket_min_readahead, MAX_LIST_OBJS_ENTRIES); - detailed_mode = detailed_mode; + detailed_mode = _detailed_mode; RGWOrphanSearchState state; r = orphan_store.read_job(job_name, state); if (r < 0 && r != -ENOENT) { diff --git a/src/rgw/rgw_orphan.h b/src/rgw/rgw_orphan.h index ffe791c563c5c..7d808eeda65d3 100644 --- a/src/rgw/rgw_orphan.h +++ b/src/rgw/rgw_orphan.h @@ -195,7 +195,7 @@ public: return orphan_store.write_job(search_info.job_name, state); } - int init(const string& job_name, RGWOrphanSearchInfo *info, bool detailed_mode=false); + int init(const string& job_name, RGWOrphanSearchInfo *info, bool _detailed_mode=false); int create(const string& job_name, int num_shards); -- 2.39.5