summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_util.cpp
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2020-02-20 21:42:07 +1100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-05 13:03:43 +0000
commit747ff353cbc819d032fa727d4bd7ffad16ea0437 (patch)
treed9b3d7e9af26138d7b74e0416a93d6110e326af0 /src/mongo/db/s/migration_util.cpp
parent7c4b875a8858c5bd5efc9bf4f285f7f440fdfdc0 (diff)
downloadmongo-747ff353cbc819d032fa727d4bd7ffad16ea0437.tar.gz
SERVER-45692 add explicit RWC to inter-node commands (even if merely kImplicitDefault)
Diffstat (limited to 'src/mongo/db/s/migration_util.cpp')
-rw-r--r--src/mongo/db/s/migration_util.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/s/migration_util.cpp b/src/mongo/db/s/migration_util.cpp
index ead3d722055..02d7e5bcc31 100644
--- a/src/mongo/db/s/migration_util.cpp
+++ b/src/mongo/db/s/migration_util.cpp
@@ -41,6 +41,7 @@
#include "mongo/client/query.h"
#include "mongo/db/catalog/collection_catalog_helper.h"
#include "mongo/db/catalog_raii.h"
+#include "mongo/db/commands.h"
#include "mongo/db/dbdirectclient.h"
#include "mongo/db/logical_session_cache.h"
#include "mongo/db/namespace_string.h"
@@ -693,7 +694,8 @@ void ensureChunkVersionIsGreaterThan(OperationContext* opCtx,
newOpCtx,
ReadPreferenceSetting{ReadPreference::PrimaryOnly},
"admin",
- ensureChunkVersionIsGreaterThanRequestBSON,
+ CommandHelpers::appendMajorityWriteConcern(
+ ensureChunkVersionIsGreaterThanRequestBSON),
Shard::RetryPolicy::kIdempotent);
const auto ensureChunkVersionIsGreaterThanStatus =
Shard::CommandResponse::getEffectiveStatus(ensureChunkVersionIsGreaterThanResponse);