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

disallow convertToCapped on system collections

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • 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})

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: