From 37a3728da9e9d88bfc2326083a43e79ec6e9f6d2 Mon Sep 17 00:00:00 2001 From: tianqing Date: Sun, 14 Feb 2016 17:05:55 +0800 Subject: [PATCH] Make variable count usefull Basicly the variable count is used as the total number of op_seq for journal replay. But it is not added as the op trsanctions is done. So add the expression to make the variable count usefull. Signed-off-by: tianqing --- src/os/filestore/JournalingObjectStore.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/os/filestore/JournalingObjectStore.cc b/src/os/filestore/JournalingObjectStore.cc index 100ae6610625..a3fbb974217c 100644 --- a/src/os/filestore/JournalingObjectStore.cc +++ b/src/os/filestore/JournalingObjectStore.cc @@ -92,10 +92,14 @@ int JournalingObjectStore::journal_replay(uint64_t fs_op_seq) apply_manager.op_apply_finish(seq); op_seq = seq; + count++; dout(3) << "journal_replay: r = " << r << ", op_seq now " << op_seq << dendl; } + if (count) + dout(3) << "journal_replay: total = " << count << dendl; + replaying = false; submit_manager.set_op_seq(op_seq); -- 2.47.3