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

Initial sync of capped collection does not create _id index

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: 2.1.0
    • Component/s: Replication
    • Labels:
      None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: