summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2020-04-07 14:42:41 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-07 15:32:50 +0000
commit961c26475c1560f575dd95d6a30294d07b72a707 (patch)
tree3f2ff30b5b5ae24213fffbe90b18e5b897131f38
parentdad8f4b1f7fefbdfae63bf4786e72dd47ff7a560 (diff)
downloadmongo-961c26475c1560f575dd95d6a30294d07b72a707.tar.gz
SERVER-47345 Fix causal consistency bug in $merge code on mongos
-rw-r--r--src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp b/src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp
index 0a32967e3fe..52fd8943c39 100644
--- a/src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp
+++ b/src/mongo/db/pipeline/process_interface/mongos_process_interface.cpp
@@ -296,7 +296,8 @@ bool MongosProcessInterface::fieldsHaveSupportingUniqueIndex(
opCtx,
ReadPreferenceSetting::get(opCtx),
nss.db().toString(),
- BSON("listIndexes" << nss.coll()),
+ applyReadWriteConcern(
+ opCtx, true /* appendRC */, false /* appendWC */, BSON("listIndexes" << nss.coll())),
opCtx->hasDeadline() ? opCtx->getRemainingMaxTimeMillis() : Milliseconds(-1));
// If the namespace does not exist, then the field paths *must* be _id only.