]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-dedup-tool: rename var
authorSage Weil <sage@newdream.net>
Tue, 12 May 2020 14:56:17 +0000 (09:56 -0500)
committerSage Weil <sage@newdream.net>
Wed, 27 May 2020 12:47:27 +0000 (07:47 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
src/tools/ceph_dedup_tool.cc

index ae98f914160d030802916056c6640633dcbea10b..d41177ce8c949774d9e313e0aea521da9985b7e6 100644 (file)
@@ -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");