Skip to content

Commit d8cd5d9

Browse files
committedMar 5, 2025
refactor(physical-restore): For MYIsam, if there is any warning in checks perform repair
1 parent 24ceec8 commit d8cd5d9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎agent/database_physical_restore.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,13 @@ 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":
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+
):
451457
isError = True
452458
break
453459
return isError

0 commit comments

Comments
 (0)