From: Joao Eduardo Luis Date: Mon, 29 Dec 2014 17:10:32 +0000 (+0000) Subject: tools: ceph-monstore-tool: output number of paxos versions dumped X-Git-Tag: v0.92~87^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=60e9c3f003fbc19df369358ba260db03dca78526;p=ceph.git tools: ceph-monstore-tool: output number of paxos versions dumped Signed-off-by: Joao Eduardo Luis --- diff --git a/src/tools/ceph_monstore_tool.cc b/src/tools/ceph_monstore_tool.cc index b946eac589a7..d643411efe30 100644 --- a/src/tools/ceph_monstore_tool.cc +++ b/src/tools/ceph_monstore_tool.cc @@ -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;