summaryrefslogtreecommitdiff
path: root/src/mongo/db/error_labels.cpp
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2021-03-23 10:32:39 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-06 10:36:03 +0000
commit3aa71ec3ef14d5354850e905600aa5cda2fcbba3 (patch)
treec86e16a709aafbd65d47294b024d4f2ba209b377 /src/mongo/db/error_labels.cpp
parent9f32e927f98cea09100e10e7fd564df725a42deb (diff)
downloadmongo-3aa71ec3ef14d5354850e905600aa5cda2fcbba3.tar.gz
SERVER-54020: ShardInvalidatedForTargeting thrown by resharding's getDestinedRecipient() not being retried by mongos
Diffstat (limited to 'src/mongo/db/error_labels.cpp')
-rw-r--r--src/mongo/db/error_labels.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/error_labels.cpp b/src/mongo/db/error_labels.cpp
index bdb6dc65b20..425e67220df 100644
--- a/src/mongo/db/error_labels.cpp
+++ b/src/mongo/db/error_labels.cpp
@@ -175,6 +175,7 @@ bool isTransientTransactionError(ErrorCodes::Error code,
case ErrorCodes::WriteConflict:
case ErrorCodes::LockTimeout:
case ErrorCodes::PreparedTransactionInProgress:
+ case ErrorCodes::ShardCannotRefreshDueToLocksHeld:
case ErrorCodes::ShardInvalidatedForTargeting:
case ErrorCodes::StaleDbVersion:
case ErrorCodes::TenantMigrationAborted: