From: tianqing Date: Sun, 14 Feb 2016 09:05:55 +0000 (+0800) Subject: Make variable count usefull X-Git-Tag: v10.1.0~309^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37a3728da9e9d88bfc2326083a43e79ec6e9f6d2;p=ceph.git 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 --- diff --git a/src/os/filestore/JournalingObjectStore.cc b/src/os/filestore/JournalingObjectStore.cc index 100ae661062..a3fbb974217 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);