summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern_options.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2016-02-17 11:07:45 -0500
committerEric Milkie <milkie@10gen.com>2016-02-17 15:40:45 -0500
commit52779c11c025e72a2c22c555bb06e05caf8e1ae1 (patch)
treeeb930db24ab6614098d9fca86327e6ceb6415a34 /src/mongo/db/write_concern_options.h
parentbd2c33b3c6000b92aa42bd285654d8e27bcd3af7 (diff)
downloadmongo-52779c11c025e72a2c22c555bb06e05caf8e1ae1.tar.gz
SERVER-22598 ensure all default write concern options use sync unset
Diffstat (limited to 'src/mongo/db/write_concern_options.h')
-rw-r--r--src/mongo/db/write_concern_options.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/write_concern_options.h b/src/mongo/db/write_concern_options.h
index 91320b0d39a..0c187ed2887 100644
--- a/src/mongo/db/write_concern_options.h
+++ b/src/mongo/db/write_concern_options.h
@@ -51,9 +51,6 @@ public:
WriteConcernOptions() {
reset();
- // We set syncMode to NONE to avoid having an UNSET syncMode in default WriteConcernOptions
- // since that can cause invariants to trigger.
- syncMode = SyncMode::NONE;
}
WriteConcernOptions(int numNodes, SyncMode sync, int timeout);