summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops
diff options
context:
space:
mode:
authorMarcos José Grillo Ramírez <marcos.grillo@mongodb.com>2020-08-05 16:09:03 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-07 18:45:31 +0000
commit36683dcef14dce68bfd05720e93e379180fcacd5 (patch)
tree2a15187c7ba35421f2e78c95d579e3771736126f /src/mongo/s/write_ops
parentdef606509054efb33208c6b68f1a0631bb436a83 (diff)
downloadmongo-36683dcef14dce68bfd05720e93e379180fcacd5.tar.gz
SERVER-50056 Added IGNORED shardVersion to dropCollection command allowing SSV and retrying
Diffstat (limited to 'src/mongo/s/write_ops')
-rw-r--r--src/mongo/s/write_ops/write_op.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/write_ops/write_op.cpp b/src/mongo/s/write_ops/write_op.cpp
index 31d5e0ce31d..4bda5341336 100644
--- a/src/mongo/s/write_ops/write_op.cpp
+++ b/src/mongo/s/write_ops/write_op.cpp
@@ -89,7 +89,7 @@ void WriteOp::targetWrites(OperationContext* opCtx,
// can't retry half a regular multi-write.
if (endpoints.size() > 1u && !inTransaction) {
endpoint.shardVersion = ChunkVersion::IGNORED();
- endpoint.shardVersion.canThrowSSVOnIgnored();
+ endpoint.shardVersion.setToThrowSSVOnIgnored();
}
targetedWrites->push_back(new TargetedWrite(std::move(endpoint), ref));