diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp index b830c4f81100..462d48c8e28e 100644 --- a/ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp +++ b/ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp @@ -575,19 +575,19 @@ TVector CreateConsistentMoveIndex(TOperationId nextId, cons result.push_back(CreateDropTableIndex(NextPartId(nextId, result), indexDropping)); } - for (const auto& items: dstIndexPath.Base()->GetChildren()) { - Y_ABORT_UNLESS(context.SS->PathsById.contains(items.second)); - auto implPath = context.SS->PathsById.at(items.second); + for (const auto& [name, pathId]: dstIndexPath.Base()->GetChildren()) { + Y_ABORT_UNLESS(context.SS->PathsById.contains(pathId)); + auto implPath = context.SS->PathsById.at(pathId); if (implPath->Dropped()) { continue; } - auto implTable = context.SS->PathsById.at(items.second); + auto implTable = context.SS->PathsById.at(pathId); Y_ABORT_UNLESS(implTable->IsTable()); auto implTableDropping = TransactionTemplate(dstIndexPath.PathString(), NKikimrSchemeOp::EOperationType::ESchemeOpDropTable); auto operation = implTableDropping.MutableDrop(); - operation->SetName(items.first); + operation->SetName(name); result.push_back(CreateDropTable(NextPartId(nextId, result), implTableDropping)); }