SERVER-127037: Remove uassert blocking PDIB resume from load phase (#54217)

Co-authored-by: mongodb-sage-bot[bot] <247496174+mongodb-sage-bot[bot]@users.noreply.github.com>
GitOrigin-RevId: 65b203b6540295d3aa54f17be073138652116fcd
This commit is contained in:
mongodb-sage-bot[bot] 2026-05-26 18:04:11 -04:00 committed by MongoDB Bot
parent 446decc63c
commit 1014b2f86d

View File

@ -116,10 +116,6 @@ Status IndexBuildBlock::initForResume(OperationContext* opCtx,
if (behavior == IndexTableResumeBehavior::recreate) {
// A bulk cursor can only be opened on a fresh table, so we drop the table that was created
// before shutdown and recreate it.
// TODO(SERVER-125007): Remove uassert after we enable resuming from load phase for PDIB.
uassert(12500802,
"Resuming a primary-driven index build from the load phase is not yet supported",
_method == IndexBuildMethodEnum::kHybrid);
auto collectionOptions = collection->getCollectionOptions();
auto status = durable_catalog::dropAndRecreateIndexIdentForResume(
opCtx,