Mongo - What does WriteConcern j option do when journaling is turned off?
Asked Answered
P

1

6

The documentation is not clear on what happens when the Write Concern j Option is set to true and mongod is running without a journal. Does this indicate that the write operation will return after it has been acknowledged to have been committed to the database? OR can the write operation return before the write is committed to the database? Am I thinking about this incorrectly?

Playhouse answered 12/4, 2016 at 14:24 Comment(0)
P
1

You're thinking about it correctly. From the documentation:

Changed in version 2.6: Specifying a write concern that includes j: true to a mongod or mongos running with --nojournal option produces an error. Previous versions would ignore the j: true.

One can only assume that you will get some sort of error while trying to set it up as described.

Powered answered 12/4, 2016 at 15:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.