]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tool/ceph_dedup: add comments to clarify a lock domain
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 11 Mar 2024 11:53:20 +0000 (11:53 +0000)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 11 Mar 2024 11:53:20 +0000 (11:53 +0000)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/tools/ceph_dedup/ceph_dedup_daemon.cc

index eb20128bfc0d6b0d1e043557010aca84a1407ede..026584d344eb1afd4c9ebfbcc56bc81c066741c6 100644 (file)
@@ -229,9 +229,9 @@ public:
     const utime_t start = ceph_clock_now();
     utime_t next_report;
     const uint32_t report_period;
-    size_t total_bytes = 0;
+    size_t total_bytes = 0; // Accessed in the worker threads under fingerprint_lock
     const size_t memory_threshold;
-    FpMap<std::string, dup_count_t> fp_map;
+    FpMap<std::string, dup_count_t> fp_map; // Accessed in the worker threads under fingerprint_lock
   };
 
   struct SampleDedupGlobal {