summaryrefslogtreecommitdiff
path: root/extra/innochecksum.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-04-12 09:26:02 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-04-12 09:26:02 +0300
commitca3bbf4c0c40c784a464485eb660e88949203db9 (patch)
treeabe28da3ea31e1bf14c265441ad458a982801dbc /extra/innochecksum.cc
parentbc75f7ed6d81138f8c2d8d2c800b9cf55bbaff7d (diff)
parentbf70532e3d64011e0d5319317fc938539fc42c28 (diff)
downloadmariadb-git-ca3bbf4c0c40c784a464485eb660e88949203db9.tar.gz
Merge 10.5 into 10.6
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 befd89290c1..4dc65c8d9bc 100644
--- a/extra/innochecksum.cc
+++ b/extra/innochecksum.cc
@@ -1790,6 +1790,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(" ");