Skip to content

Commit

Permalink
Fix: Exclude dropped chunks from the list of all chunks in the catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
András committed Feb 7, 2024
1 parent b406a0f commit c8df502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/systemcatalog/systemcatalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ func (sc *systemCatalog) GetAllChunks() []systemcatalog.SystemEntity {
chunkTables := make([]systemcatalog.SystemEntity, 0)
for _, chunk := range sc.chunks {
if sc.IsHypertableSelectedForReplication(chunk.HypertableId()) {
chunkTables = append(chunkTables, chunk)
if !chunk.Dropped() {
chunkTables = append(chunkTables, chunk)
}
}
}
return chunkTables
Expand Down

0 comments on commit c8df502

Please sign in to comment.