From eb0937064ec2686865150aaae68565e8e66dcd00 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 12 May 2020 09:56:17 -0500 Subject: [PATCH] ceph-dedup-tool: rename var Signed-off-by: Sage Weil --- src/tools/ceph_dedup_tool.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index ae98f914160d0..d41177ce8c949 100644 --- a/src/tools/ceph_dedup_tool.cc +++ b/src/tools/ceph_dedup_tool.cc @@ -310,19 +310,19 @@ void EstimateDedupRatio::estimate_dedup_ratio() return; } - uint64_t next_offset; + uint64_t len; if (chunk_algo == "fixed") { - next_offset = fixed_chunk(oid, offset); + len = fixed_chunk(oid, offset); } else if (chunk_algo == "rabin") { - next_offset = rabin_chunk(oid, offset); + len = rabin_chunk(oid, offset); } else { ceph_assert(0 == "no support chunk algorithm"); } - if (!next_offset) { + if (!len) { break; } - offset += next_offset; + offset += len; m_cond.wait_for(l, std::chrono::nanoseconds(COND_WAIT_INTERVAL)); if (cur_time + utime_t(timeout, 0) < ceph_clock_now()) { Formatter *formatter = Formatter::create("json-pretty"); -- 2.39.5