Re-implement Mongo.unlock and Mongo.isLocked with new database commands

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.0
    • Affects Version/s: None
    • Component/s: Command Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The Mongo.unlock method currently queries the "$cmd.sys.unlock" method to unlock the server. The 3.2 server will support an fsyncUnlock command to replace this. The driver should call that command if it detects a 3.2 server. Otherwise it should ball back to the existing way of doing it.

      Similarly, the Mongo.isLocked method queries the "$cmd.sys.inprog" collection. The 3.2 server will support a currentOp command that does the same thing. The driver should call that command if it detects a 3.2 server. Otherwise it should ball back to the existing way of doing it.

              Assignee:
              Jeffrey Yemin
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: