suppose we insert and delete the same record from a collection, we may got
two oplogs. named I and D in the natural order.
if we do db.runCommand(
{applyOps:[D, I]}
) (plz notice the order), then the record appears in the collection(use db.coll.find()), but no related-oplog inserted into the oplog.rs collection, thus primary and secondary unmatch.
suppose we insert and delete the same record from a collection, we may got
two oplogs. named I and D in the natural order.
if we do db.runCommand(
{applyOps:[D, I]}
) (plz notice the order), then the record appears in the collection(use db.coll.find()), but no related-oplog inserted into the oplog.rs collection, thus primary and secondary unmatch.