]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph_dedup_tool: make SampleDedupGlobal::sampling_rate const
authorSamuel Just <sjust@redhat.com>
Sat, 17 Sep 2022 02:57:07 +0000 (02:57 +0000)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 19 Sep 2022 04:21:32 +0000 (13:21 +0900)
Clarifies why it doesn't need to be protected by a lock.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/tools/ceph_dedup_tool.cc

index 53db3fd92ccfa5c1b2bfd4ee848b62bff8c9f7f8..d674d88eec2cd7c8d150db3efe45091207afd319 100644 (file)
@@ -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) :