Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-552

Instructions for resizing oplog problem

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 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.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            jlee Jeff lee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 20 weeks, 5 days ago