通过执行"db.printReplicationInfo"命令可查看到操作日志的一些基本信息,如日志大小、日志启用时间等。
查看primary的oplog.rs表的元信息,如下面的代码所示:
rs1:PRIMARY>db.printReplicationInfo() configured oplog size:47.6837158203125MB log length start to end:1351secs(0.38hrs) oplog first event time:Thu May 31 2012 17:49:23 GMT+0800(CST) oplog last event time:Thu May 31 2012 18:11:54 GMT+0800(CST) now: Thu May 31 2012 18:21:58 GMT+0800(CST) rs1:PRIMARY>
字段说明