diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2020-02-20 04:50:44 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-02-20 04:50:44 +0000 |
commit | 7eb6f03dd34615f2774a2cb70dadeffadce4512e (patch) | |
tree | a8986ee344e486c9937b85f5dd28d865b5e0e5c4 /src/mongo/db/commands/get_last_error.cpp | |
parent | 35667cfb9ef6c4400eea314ec15da36d1880ebca (diff) | |
download | mongo-7eb6f03dd34615f2774a2cb70dadeffadce4512e.tar.gz |
SERVER-45623 improve diagnosability of default writeConcern
- Include the writeConcern in writeConcernErrors
- Add serverStatus counters for default writeConcern timeouts and unsatisfiability
Diffstat (limited to 'src/mongo/db/commands/get_last_error.cpp')
-rw-r--r-- | src/mongo/db/commands/get_last_error.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/get_last_error.cpp b/src/mongo/db/commands/get_last_error.cpp index 531952af58e..fc8185e2978 100644 --- a/src/mongo/db/commands/get_last_error.cpp +++ b/src/mongo/db/commands/get_last_error.cpp @@ -299,7 +299,7 @@ public: replCoord->populateUnsetWriteConcernOptionsSyncMode(writeConcern).syncMode == WriteConcernOptions::SyncMode::JOURNAL); } - wcResult.appendTo(writeConcern, &result); + wcResult.appendTo(&result); // For backward compatibility with 2.4, wtimeout returns ok : 1.0 if (wcResult.wTimedOut) { |