From: Sage Weil Date: Tue, 12 May 2020 14:56:17 +0000 (-0500) Subject: ceph-dedup-tool: rename var X-Git-Tag: v16.1.0~2230^2~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eb0937064ec2686865150aaae68565e8e66dcd00;p=ceph.git ceph-dedup-tool: rename var Signed-off-by: Sage Weil --- diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index ae98f914160..d41177ce8c9 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");