diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-03-28 11:35:10 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-03-28 11:35:10 +0300 |
commit | b2fa874e462e7352be173a3075a65e49f2fcc404 (patch) | |
tree | 9613dc577960d6e5eb8b5ea3fad15ae9a99bdf56 /extra/innochecksum.cc | |
parent | 8f8ba758559e473f643baa0a0601d321c42517b9 (diff) | |
download | mariadb-git-b2fa874e462e7352be173a3075a65e49f2fcc404.tar.gz |
MDEV-28181 The innochecksum -w option was inadvertently removed
In commit 7a4fbb55b02b449a135fe935f624422eaacfdd7c (MDEV-25105)
the innochecksum option --write (-w) was removed altogether.
It should have been made a Boolean option, so that old data files
may be converted to a format that is compatible with
innodb_checksum_algorithm=strict_crc32 by executing the following:
innochecksum -n -w ibdata* */*.ibd
It would be better to use an older-version innochecksum
for such a conversion, so that page checksums will be validated
before updating the checksum.
It never was possible for innochecksum to convert files to the
innodb_checksum_algorithm=full_crc32 format that is the default
for new InnoDB data files.
Diffstat (limited to 'extra/innochecksum.cc')
-rw-r--r-- | extra/innochecksum.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/innochecksum.cc b/extra/innochecksum.cc index 6c732dbdb48..65224c8c3f5 100644 --- a/extra/innochecksum.cc +++ b/extra/innochecksum.cc @@ -1194,6 +1194,8 @@ static struct my_option innochecksum_options[] = { {"allow-mismatches", 'a', "Maximum checksum mismatch allowed.", &allow_mismatches, &allow_mismatches, 0, GET_ULL, REQUIRED_ARG, 0, 0, ULLONG_MAX, 0, 1, 0}, + {"write", 'w', "Rewrite the checksum.", + &do_write, &do_write, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, {"page-type-summary", 'S', "Display a count of each page type " "in a tablespace.", &page_type_summary, &page_type_summary, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, |