]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: correct an output string for merge-diff 7046/head
authorKongming <wu.kongming@h3c.com>
Sun, 6 May 2001 23:50:45 +0000 (07:50 +0800)
committerKongming Wu <wu.kongming@h3c.com>
Tue, 5 Jan 2016 02:12:50 +0000 (10:12 +0800)
This modification correct an output string for rbd merge-diff, in which mistakenly output variables of first diff header rather than second diff header.

Signed-off-by: Kongming Wu <wu.kongming@h3c.com>
src/tools/rbd/action/MergeDiff.cc

index eb3f3a3741a5ea91649abf005067e570a0871f8c..f56ec1f27d02569826eef26a7fecbfb265f5e174 100644 (file)
@@ -290,9 +290,9 @@ static int do_merge_diff(const char *first, const char *second,
       uint64_t last_off = s_off;
 
       r = parse_diff_body(sd, &s_tag, &s_off, &s_len);
-      dout(2) << "second diff data chunk: tag=" << f_tag << ", "
-              << "off=" << f_off << ", "
-              << "len=" << f_len << dendl;
+      dout(2) << "second diff data chunk: tag=" << s_tag << ", "
+              << "off=" << s_off << ", "
+              << "len=" << s_len << dendl;
       if (r < 0) {
         std::cerr << "rbd: failed to read second diff data chunk header"
                   << std::endl;