summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern_options.h
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2019-10-03 01:50:48 +0000
committerevergreen <evergreen@mongodb.com>2019-10-03 01:50:48 +0000
commitef5c6b85dd873b69a12d919932e54c7b6711b14d (patch)
treea6294552175df0dc291a3a19f40d004f4b7f6141 /src/mongo/db/write_concern_options.h
parent14b7efe1c6b5a00eac88e12c42ad31730db18fec (diff)
downloadmongo-ef5c6b85dd873b69a12d919932e54c7b6711b14d.tar.gz
SERVER-43252: Only compute WriteConcernResult.writtenTo for CmdGetLastError
Diffstat (limited to 'src/mongo/db/write_concern_options.h')
-rw-r--r--src/mongo/db/write_concern_options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/write_concern_options.h b/src/mongo/db/write_concern_options.h
index 99a6bff9fc2..39025832ea0 100644
--- a/src/mongo/db/write_concern_options.h
+++ b/src/mongo/db/write_concern_options.h
@@ -93,7 +93,7 @@ public:
* Return true if the server needs to wait for other secondary nodes to satisfy this
* write concern setting. Errs on the false positive for non-empty wMode.
*/
- bool shouldWaitForOtherNodes() const;
+ bool needToWaitForOtherNodes() const;
void reset() {
syncMode = SyncMode::UNSET;