]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/ceph_dedup_tool: fix unused var "debug"
authorSHU Zhenyi <shuzhenyi@live.com>
Fri, 10 Jul 2020 02:41:14 +0000 (02:41 +0000)
committerSHU Zhenyi <shuzhenyi@live.com>
Fri, 10 Jul 2020 02:41:14 +0000 (02:41 +0000)
Signed-off-by: SHU Zhenyi <shuzhenyi@live.com>
src/tools/ceph_dedup_tool.cc

index 35004a279078dfba1699efc174d7ca45358baabc..ae8e855aac5b95e54d703f8dafc9151c6d3f8f13 100644 (file)
@@ -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();