change message on fsync lock

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 1.9.0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      I always forget to use the admin db when copying that line. It should say something like db.getSisterDB('admin').$cmd.sys.unlock.findOne()

      rs:PRIMARY> db.adminCommand(

      {fsync:1, lock:1}

      )

      { "info" : "now locked against writes, use db.$cmd.sys.unlock.findOne() to unlock", "ok" : 1 } rs:PRIMARY> db.$cmd.sys.unlock.findOne() { "err" : "unauthorized" }

      rs:PRIMARY> use admin
      switched to db admin
      rs:PRIMARY> db.$cmd.sys.unlock.findOne()

      { "ok" : 1, "info" : "unlock requested" }

            Assignee:
            Mathias Stearn
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: