[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 |
| Comments |
| Comment by Mathias Stearn [ 04/Apr/11 ] |
|
Now suggests db.fsyncUnlock() |