Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-213

Make special commands (inprog, killop, unlock) go through the standard command codepath

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      Previously killOp, currentOp, and fsyncUnlock were implemented as queries on special system collections.

      There are all being re-implemented as normal commands, with names taken from the corresponding shell helpers.

      The name of command for the old "$cmd.sys.killop" system collection will be "killOp". As before it will have an "op" parameter indicating the operation that is being killed.

      The name of the command for the old "$cmd.sys.unlock" system collection will be "fsyncUnlock" (to match fsyncLock).

      The name of the command for the old "$cmd.sys.inprog" system collection will be "currentOp".

      The behavior of the actual commands will be nearly unchanged - except for slightly improved error handling for incorrect parameter types.

      UPDATE: there is a minor behavior change in currentOp/inprog - the currentOp operation itself will now appear in the "inprog" array of returned operations (similar to 'ps' on unix systems).

      The server will deprecate the system collections in MongoDB 3.2.x. We anticipate that they will be removed in subsequent releases.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            barrie Barrie Segal
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: