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

disallow convertToCapped on system collections

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL
    • Hide

      Connect to primary.

      use test
      db.setProfilingLevel(1)
      db.setProfilingLevel(0)
      db.runCommand({convertToCapped: "system.profile", size:100000})
      
      Show
      Connect to primary. use test db.setProfilingLevel(1) db.setProfilingLevel(0) db.runCommand({convertToCapped: "system.profile" , size:100000})

      The system.profile collection shouldn't have anything replicated against it.

      Oplog output:

      {
        "h": NumberLong("-8100133880159272942"),
        "ns": "test.$cmd",
        "o": {
          "convertToCapped": "system.profile",
          "size": 100000
        },
        "op": "c",
        "ts": Timestamp(1404932023, 1),
        "v": 2
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            charlie.page@10gen.com Charlie Page
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: