summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/capped_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/capped_utils.cpp')
-rw-r--r--src/mongo/db/catalog/capped_utils.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mongo/db/catalog/capped_utils.cpp b/src/mongo/db/catalog/capped_utils.cpp
index 6e34677f61d..cf244eddeb9 100644
--- a/src/mongo/db/catalog/capped_utils.cpp
+++ b/src/mongo/db/catalog/capped_utils.cpp
@@ -199,12 +199,7 @@ void mongo::cloneCollectionAsCapped(OperationContext* opCtx,
break;
}
default:
- // Unreachable as:
- // 1) We require a read lock (at a minimum) on the "from" collection
- // and won't yield, preventing collection drop and PlanExecutor::DEAD
- // 2) PlanExecutor::FAILURE is only returned on PlanStage::FAILURE. The
- // CollectionScan PlanStage does not have a FAILURE scenario.
- // 3) All other PlanExecutor states are handled above
+ // A collection scan plan which does not yield should never fail.
MONGO_UNREACHABLE;
}