]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_filestore_dump: Improve debug output by showing actual offset
authorDavid Zafman <david.zafman@inktank.com>
Sat, 17 May 2014 01:20:11 +0000 (18:20 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 28 Aug 2014 23:21:27 +0000 (16:21 -0700)
Signed-off-by: David Zafman <david.zafman@inktank.com>
src/tools/ceph_filestore_dump.cc

index 8cb62428d3e6e6aca8d4ba08b1c7b4b9a75d3fec..1a06b6dae5c021dcb8d13047f43891f0f607400d 100644 (file)
@@ -622,12 +622,12 @@ int export_file(ObjectStore *store, coll_t cid, ghobject_t &obj)
       return -EINVAL;
 
     data_section dblock(offset, len, rawdatabl);
-    total -= ret;
-    offset += ret;
-
     if (debug)
       cerr << "data section offset=" << offset << " len=" << len << std::endl;
 
+    total -= ret;
+    offset += ret;
+
     ret = write_section(TYPE_DATA, dblock, file_fd);
     if (ret) return ret;
   }