Skip to content

Commit eb88433

Browse files
committed
fixup! Centralize failed subhandler check in StateBasedSubHandler
1 parent ed82245 commit eb88433

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crate/operator/restore_backup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,8 +1310,10 @@ async def set_gc_tables(
13101310
existing_gc_tables = await cursor.fetchall()
13111311

13121312
if existing_gc_tables:
1313+
# strip '_temp' suffix if present
13131314
existing_gc_tables = [
1314-
f"gc.{table[0]}" for table in existing_gc_tables
1315+
f"gc.{table[0].removesuffix('_temp')}"
1316+
for table in existing_gc_tables
13151317
]
13161318
for (table,) in snapshot_gc_tables:
13171319
if table in existing_gc_tables:

0 commit comments

Comments
 (0)