Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5649

Initial sync of capped collection does not create _id index

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1.2
    • 2.1.0
    • Replication
    • None
    • ALL

    Description

      Steps to reproduce:

      1. Start up a stand-alone server, create a capped collection, create a unique index on _id on said collection.

        test> db.createCollection("foo",{capped:true,size:1000})
        { "ok" : 1 }
        test> db.foo.ensureIndex({_id:1},{unique:true})

      2. Restart server as the first member of a replica set
      3. Add another member to the replica set
      4. The new member will have the collection foo, but no _id index.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            kristina Kristina Chodorow (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: