[SERVER-2715] change message on fsync lock Created: 09/Mar/11  Updated: 12/Jul/16  Resolved: 04/Apr/11

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Improvement Priority: Minor - P4
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

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

 Comments   
Comment by Mathias Stearn [ 04/Apr/11 ]

Now suggests db.fsyncUnlock()

Generated at Thu Feb 08 03:00:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.