Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1719

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

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0
    • Affects Version/s: None
    • Component/s: Command Operations
    • Labels:
      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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: