From ef5c6b85dd873b69a12d919932e54c7b6711b14d Mon Sep 17 00:00:00 2001 From: Lingzhi Deng Date: Thu, 3 Oct 2019 01:50:48 +0000 Subject: SERVER-43252: Only compute WriteConcernResult.writtenTo for CmdGetLastError --- src/mongo/db/write_concern_options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/write_concern_options.h') 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; -- cgit v1.2.1