summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/get_last_error.cpp
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2020-02-20 04:50:44 +0000
committerevergreen <evergreen@mongodb.com>2020-02-20 04:50:44 +0000
commit7eb6f03dd34615f2774a2cb70dadeffadce4512e (patch)
treea8986ee344e486c9937b85f5dd28d865b5e0e5c4 /src/mongo/db/commands/get_last_error.cpp
parent35667cfb9ef6c4400eea314ec15da36d1880ebca (diff)
downloadmongo-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.cpp2
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) {