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

disallow convertToCapped on system collections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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})

      Description

      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
      }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: