summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp')
-rw-r--r--src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp b/src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp
index 791bfb50f8b..7e3d89d58f0 100644
--- a/src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp
+++ b/src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp
@@ -37,8 +37,6 @@
#include "mongo/db/s/sharding_state.h"
#include "mongo/db/s/sharding_statistics.h"
#include "mongo/logv2/log.h"
-#include "mongo/s/grid.h"
-#include "mongo/s/shard_cannot_refresh_due_to_locks_held_exception.h"
#include "mongo/s/stale_exception.h"
namespace mongo {
@@ -123,18 +121,8 @@ ScopedOperationCompletionShardingActions::~ScopedOperationCompletionShardingActi
LOGV2(22054,
"Failed to handle database version exception as part of the current operation: "
"{error}",
- "Failed to handle database version exception as part of the current operation",
+ "Failed to database version exception as part of the current operation",
"error"_attr = redact(handleMismatchStatus));
- } else if (auto failedRefreshInfo = status->extraInfo<ShardCannotRefreshDueToLocksHeldInfo>()) {
- // It is OK to synchronously refresh the catalog cache here.
- const auto swCri = Grid::get(_opCtx)->catalogCache()->getCollectionRoutingInfo(
- _opCtx, failedRefreshInfo->getNss());
- if (!swCri.getStatus().isOK()) {
- LOGV2(8150800,
- "Failed to handle ShardCannotRefreshDueToLocksHeld as part of the current "
- "operation",
- "error"_attr = redact(swCri.getStatus()));
- }
}
}