Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
None
-
None
-
None
Description
Hi,
The documentation for resizing an oplog ( http://docs.mongodb.org/manual/tutorial/change-oplog-size/ ) indicates that the last entry from the current oplog should be saved.
I believe this needs to be modified to take the last insert operation otherwise you may get a key with a $.
Should be:
db.temp.save( db.oplog.rs.find(
{op:'i'}).sort( {$natural : -1} ).limit(1).next() )
Cheers.