From bd4e6d35eff2a972668c228eb824c4399447116a Mon Sep 17 00:00:00 2001 From: SHU Zhenyi Date: Fri, 10 Jul 2020 02:41:14 +0000 Subject: [PATCH] tools/ceph_dedup_tool: fix unused var "debug" Signed-off-by: SHU Zhenyi --- src/tools/ceph_dedup_tool.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index 35004a279078d..ae8e855aac5b9 100644 --- a/src/tools/ceph_dedup_tool.cc +++ b/src/tools/ceph_dedup_tool.cc @@ -194,6 +194,7 @@ public: uint64_t get_examined_bytes() { return examined_bytes; } uint64_t get_total_bytes() { return total_bytes; } uint64_t get_total_objects() { return total_objects; } + void set_debug(const bool debug_) { debug = debug_; } friend class EstimateDedupRatio; friend class ChunkScrub; }; @@ -663,6 +664,7 @@ int estimate_dedup_ratio(const std::map < std::string, std::string > &opts, report_period, s.num_objects, max_read_size, max_seconds)); ptr->create("estimate_thread"); + ptr->set_debug(debug); estimate_threads.push_back(move(ptr)); } glock.unlock(); -- 2.39.5