summaryrefslogtreecommitdiff
path: root/extra/innochecksum.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-04-12 16:11:29 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-04-12 16:11:29 +0300
commitaa3a9d1ef58a0993971cde672dafc56bca71a71e (patch)
tree7d647a5f93b50c08e09a2f1d9b9c9835a55f3c90 /extra/innochecksum.cc
parent011b332d812383adb08ba72b176b769bac060035 (diff)
parentcdc0bbdd87bbe139b543916f0ab32c90e3fb4917 (diff)
downloadmariadb-git-aa3a9d1ef58a0993971cde672dafc56bca71a71e.tar.gz
Merge 10.6 into 10.7
Diffstat (limited to 'extra/innochecksum.cc')
-rw-r--r--extra/innochecksum.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/innochecksum.cc b/extra/innochecksum.cc
index 164e3c22348..82b88f7072d 100644
--- a/extra/innochecksum.cc
+++ b/extra/innochecksum.cc
@@ -1785,6 +1785,18 @@ unexpected_eof:
}
if (ferror(fil_in)) {
+#ifdef _AIX
+ /*
+ AIX fseeko can go past eof without error.
+ the error occurs on read, hence output the
+ same error here as would show up on other
+ platforms. This shows up in the mtr test
+ innodb_zip.innochecksum_3-4k,crc32,innodb
+ */
+ if (errno == EFBIG) {
+ goto unexpected_eof;
+ }
+#endif
fprintf(stderr, "Error reading " ULINTPF " bytes",
physical_page_size);
perror(" ");