summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/s/balancer/balancer_defragmentation_policy_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/balancer/balancer_defragmentation_policy_impl.cpp b/src/mongo/db/s/balancer/balancer_defragmentation_policy_impl.cpp
index f5167a8e354..81ede2b693f 100644
--- a/src/mongo/db/s/balancer/balancer_defragmentation_policy_impl.cpp
+++ b/src/mongo/db/s/balancer/balancer_defragmentation_policy_impl.cpp
@@ -91,7 +91,7 @@ ZoneInfo getCollectionZones(OperationContext* opCtx, const CollectionType& coll)
bool isRetriableForDefragmentation(const Status& error) {
return (ErrorCodes::isA<ErrorCategory::RetriableError>(error) ||
- error == ErrorCodes::StaleShardVersion || error == ErrorCodes::StaleConfig);
+ error == ErrorCodes::StaleConfig);
}
void handleActionResult(OperationContext* opCtx,
@@ -107,7 +107,7 @@ void handleActionResult(OperationContext* opCtx,
return;
}
- if (status.isA<ErrorCategory::StaleShardVersionError>()) {
+ if (status == ErrorCodes::StaleConfig) {
if (auto staleInfo = status.extraInfo<StaleConfigInfo>()) {
Grid::get(opCtx)
->catalogCache()
@@ -1668,7 +1668,7 @@ std::unique_ptr<DefragmentationPhase> BalancerDefragmentationPolicyImpl::_transi
}
afterBuildingNextDefragmentationPhase.pauseWhileSet();
LOGV2(6172702,
- "Collection defragmentation transitioning to new phase",
+ "Collection defragmentation transitioned to new phase",
"namespace"_attr = coll.getNss(),
"phase"_attr = nextPhaseObject
? DefragmentationPhase_serializer(nextPhaseObject->getType())