From: Samuel Just Date: Sat, 17 Sep 2022 02:57:07 +0000 (+0000) Subject: ceph_dedup_tool: make SampleDedupGlobal::sampling_rate const X-Git-Tag: v18.0.0~6^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f2967ff4099c997af03c46612d565afa4c67d1e;p=ceph.git ceph_dedup_tool: make SampleDedupGlobal::sampling_rate const Clarifies why it doesn't need to be protected by a lock. Signed-off-by: Samuel Just --- diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index 53db3fd92ccf..d674d88eec2c 100644 --- a/src/tools/ceph_dedup_tool.cc +++ b/src/tools/ceph_dedup_tool.cc @@ -585,7 +585,7 @@ public: struct SampleDedupGlobal { FpStore fp_store; - double sampling_ratio = -1; + const double sampling_ratio = -1; SampleDedupGlobal( int chunk_threshold, int sampling_ratio) :