Skip to content

Commit 14d5a6f

Browse files
authored
Fix GC file leak for main (#22619)
Fix GC file leak for main Approved by: @XuPeng-SH
1 parent 656cf7b commit 14d5a6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/vm/engine/tae/db/gc/v3/exec_v1.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,10 @@ func MakeSnapshotAndPitrFineFilter(
354354
if transObjects[name] != nil {
355355
tables := transObjects[name]
356356
if entry := tables[tableID]; entry != nil {
357-
357+
// Check if the table still exists
358+
_, ok := snapshotMeta.GetAccountId(tableID)
358359
// The table has not been dropped, and the dropTS is empty, so it cannot be deleted.
359-
if entry.dropTS.IsEmpty() {
360+
if entry.dropTS.IsEmpty() && ok {
360361
continue
361362
}
362363

0 commit comments

Comments
 (0)