]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Make variable count usefull 7643/head
authortianqing <tianqing@unitedstack.com>
Sun, 14 Feb 2016 09:05:55 +0000 (17:05 +0800)
committertianqing <tianqing@unitedstack.com>
Mon, 15 Feb 2016 13:45:22 +0000 (21:45 +0800)
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 <tianqing@unitedstack.com>
src/os/filestore/JournalingObjectStore.cc

index 100ae6610625bff266ae30b886dfe53016b6c114..a3fbb974217cdecf023a2cbcc0ee26224c93f07b 100644 (file)
@@ -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);