Skip to content

Commit 4722e04

Browse files
committed
address PR issues
1 parent 91aa06e commit 4722e04

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

ydb/core/tx/schemeshard/schemeshard__backup_collection_common.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ std::optional<THashMap<TString, THashSet<TString>>> GetBackupRequiredPaths(
164164
if (childPath->PathType != NKikimrSchemeOp::EPathTypeTableIndex) {
165165
continue;
166166
}
167+
168+
// Skip deleted indexes
169+
if (childPath->Dropped()) {
170+
continue;
171+
}
167172

168173
auto indexInfo = context.SS->Indexes.at(childPathId);
169174
if (indexInfo->Type != NKikimrSchemeOp::EIndexTypeGlobal) {

ydb/core/tx/schemeshard/schemeshard__operation_backup_backup_collection.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ TVector<ISubOperation::TPtr> CreateBackupBackupCollection(TOperationId opId, con
183183
continue;
184184
}
185185

186+
// Skip deleted indexes
187+
if (childPath->Dropped()) {
188+
continue;
189+
}
190+
186191
// Get index info and filter for global sync only
187192
// We need more complex logic for vector indexes in future
188193
auto indexInfo = context.SS->Indexes.at(childPathId);

ydb/core/tx/schemeshard/schemeshard__operation_backup_incremental_backup_collection.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ TVector<ISubOperation::TPtr> CreateBackupIncrementalBackupCollection(TOperationI
246246
if (childPath->PathType != NKikimrSchemeOp::EPathTypeTableIndex) {
247247
continue;
248248
}
249+
250+
// Skip deleted indexes
251+
if (childPath->Dropped()) {
252+
continue;
253+
}
249254

250255
// Get index info and filter for global sync only
251256
auto indexInfo = context.SS->Indexes.at(childPathId);

0 commit comments

Comments
 (0)