[DOCS-1877] Comment on: "manual/core/write-concern.txt" Created: 02/Sep/13 Updated: 03/Nov/17 Resolved: 22/Jan/14 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | v1.2 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Christoph Menge | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
N/A Location: http://docs.mongodb.org/manual/core/write-concern/ |
||
| Participants: | |
| Days since reply: | 10 years, 24 weeks, 2 days ago |
| Description |
|
The description for the section "Journaled" is misleading, at least if I understand the source code correctly. The documentation says: "However, there is a window between journal commits when the write operation is not fully durable". That probably refers to a mongod running with journaling on that accepts a write that does NOT use the j:true write concern. In that case, there's a chance of the write getting lost since the last journal commit. If j:true is specified, however, the write operation (or, more precisely, the getLastError command) will block until the server's durability thread has flushed all pending changes to disk, so the client can be sure that the data has been written. |