From 60e9c3f003fbc19df369358ba260db03dca78526 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Mon, 29 Dec 2014 17:10:32 +0000 Subject: [PATCH] tools: ceph-monstore-tool: output number of paxos versions dumped Signed-off-by: Joao Eduardo Luis --- src/tools/ceph_monstore_tool.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.47.3