]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: ceph-monstore-tool: output number of paxos versions dumped
authorJoao Eduardo Luis <joao@redhat.com>
Mon, 29 Dec 2014 17:10:32 +0000 (17:10 +0000)
committerJoao Eduardo Luis <joao@redhat.com>
Mon, 29 Dec 2014 17:50:28 +0000 (17:50 +0000)
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
src/tools/ceph_monstore_tool.cc

index b946eac589a7480c8aafda103eb8cc3fda4daea5..d643411efe304ed6c0aca83ddbe91dc797e3fb29 100644 (file)
@@ -426,7 +426,8 @@ int main(int argc, char **argv) {
       goto done;
     }
 
-    for (version_t v = dstart; v <= dstop; ++v) {
+    version_t v = dstart;
+    for (; v <= dstop; ++v) {
       bufferlist bl;
       st.get("paxos", v, bl);
       if (bl.length() == 0)
@@ -438,6 +439,9 @@ int main(int argc, char **argv) {
       tx->dump(&f);
       f.flush(cout);
     }
+
+    std::cout << "dumped " << v << " paxos versions" << std::endl;
+
   } else if (cmd == "dump-trace") {
     unsigned dstart = 0;
     unsigned dstop = ~0;