Skip to content

Commit bab7656

Browse files
committed
refactor(physical-restore): For myisam table, on warning do repair
Simplified check
1 parent d8cd5d9 commit bab7656

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

agent/database_physical_restore.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -447,13 +447,7 @@ def is_table_corrupted(self, table_name: str) -> bool:
447447
""" # noqa: E501
448448
isError = False
449449
for row in result:
450-
if row[2] == "error" or (
451-
row[2] == "warning"
452-
and (
453-
row[3].lower().startswith("size of datafile")
454-
or row[3].lower().startswith("size of indexfile")
455-
)
456-
):
450+
if row[2] == "error" or (row[2] == "warning" and table_name in self.myisam_tables):
457451
isError = True
458452
break
459453
return isError

0 commit comments

Comments
 (0)