summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2016-08-31 15:54:03 -0400
committerSpencer T Brody <spencer@mongodb.com>2016-08-31 16:44:03 -0400
commitc268093f8fa2ec75683ebd34481465f791356320 (patch)
treea6afedd9367e2995b241bed9c6bb44f8d8ba0321 /src/mongo/db/write_concern.cpp
parent95c528f8d155444b6e2d08487b75a4a99c04a708 (diff)
downloadmongo-c268093f8fa2ec75683ebd34481465f791356320.tar.gz
SERVER-25915 Log when waiting for write concern
Diffstat (limited to 'src/mongo/db/write_concern.cpp')
-rw-r--r--src/mongo/db/write_concern.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/write_concern.cpp b/src/mongo/db/write_concern.cpp
index 6e986d87b19..1548dae14a2 100644
--- a/src/mongo/db/write_concern.cpp
+++ b/src/mongo/db/write_concern.cpp
@@ -26,7 +26,7 @@
* it in the license file.
*/
-#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kReplication
#include "mongo/platform/basic.h"
@@ -178,6 +178,8 @@ Status waitForWriteConcern(OperationContext* txn,
const OpTime& replOpTime,
const WriteConcernOptions& writeConcern,
WriteConcernResult* result) {
+ LOG(2) << "Waiting for write concern. OpTime: " << replOpTime
+ << ", write concern: " << writeConcern.toBSON();
auto replCoord = repl::ReplicationCoordinator::get(txn);
// Next handle blocking on disk