Skip to content

Commit 4331ffb

Browse files
committed
Unpack index name and pathId
1 parent 188d06f commit 4331ffb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -575,19 +575,19 @@ TVector<ISubOperation::TPtr> CreateConsistentMoveIndex(TOperationId nextId, cons
575575
result.push_back(CreateDropTableIndex(NextPartId(nextId, result), indexDropping));
576576
}
577577

578-
for (const auto& items: dstIndexPath.Base()->GetChildren()) {
579-
Y_ABORT_UNLESS(context.SS->PathsById.contains(items.second));
580-
auto implPath = context.SS->PathsById.at(items.second);
578+
for (const auto& [name, pathId]: dstIndexPath.Base()->GetChildren()) {
579+
Y_ABORT_UNLESS(context.SS->PathsById.contains(pathId));
580+
auto implPath = context.SS->PathsById.at(pathId);
581581
if (implPath->Dropped()) {
582582
continue;
583583
}
584584

585-
auto implTable = context.SS->PathsById.at(items.second);
585+
auto implTable = context.SS->PathsById.at(pathId);
586586
Y_ABORT_UNLESS(implTable->IsTable());
587587

588588
auto implTableDropping = TransactionTemplate(dstIndexPath.PathString(), NKikimrSchemeOp::EOperationType::ESchemeOpDropTable);
589589
auto operation = implTableDropping.MutableDrop();
590-
operation->SetName(items.first);
590+
operation->SetName(name);
591591

592592
result.push_back(CreateDropTable(NextPartId(nextId, result), implTableDropping));
593593
}

0 commit comments

Comments
 (0)