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

change message on fsync lock

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.9.0
    • None
    • Storage
    • None

    Description

      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" }

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: