summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authormyoungwon oh <ohmyoungwon@gmail.com>2024-03-11 12:53:20 +0100
committermyoungwon oh <ohmyoungwon@gmail.com>2024-03-11 12:53:20 +0100
commit8129d826d47ef6b11f95f719b48a986a8fb9f685 (patch)
tree8d2e2cc8096ee039d520fadd5c0094f178363ba4 /src/tools
parenttool/ceph_dedup: split ceph_dedup_tool into ceph_dedup_tool and ceph_dedup_da... (diff)
downloadceph-8129d826d47ef6b11f95f719b48a986a8fb9f685.tar.xz
ceph-8129d826d47ef6b11f95f719b48a986a8fb9f685.zip
tool/ceph_dedup: add comments to clarify a lock domain
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/ceph_dedup/ceph_dedup_daemon.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/ceph_dedup/ceph_dedup_daemon.cc b/src/tools/ceph_dedup/ceph_dedup_daemon.cc
index eb20128bfc0..026584d344e 100644
--- a/src/tools/ceph_dedup/ceph_dedup_daemon.cc
+++ b/src/tools/ceph_dedup/ceph_dedup_daemon.cc
@@ -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 {