Skip to content

Commit ca24637

Browse files
author
Paweł Andruszkiewicz
committed
WL#15947 Checksum and verify dumped and loaded data
A new options has been added to the following methods: ------------------------------------------------------ * `util.dumpInstance()` * `util.dumpSchemas()` * `util.dumpTables()` `checksum` ---------- bool (default: `false`) - Include checksum information in the dump. Checksums are generated either for table chunks or whole tables, depending on the value of the `chunking` option. If data is not being dumped, checksums are generated for whole tables. A new options has been added to the following method: ----------------------------------------------------- * `util.loadDump()` `checksum` ---------- bool (default: `false`) - Verify checksum information from the dump. Checksums are verified after data finishes loading. If data is not being loaded, current contents is verified. A new options has been added to the following methods: ------------------------------------------------------ * `util.copyInstance()` * `util.copySchemas()` * `util.copyTables()` `checksum` ---------- bool (default: `false`) - Generate and verify checksum information. Checksums are verified either for table chunks or whole tables, depending on the value of the `chunking` option. If data is not being copied, checksums are verified for whole tables. A new loader error has been added: ---------------------------------- define SHERR_LOAD_CHECKSUM_VERIFICATION_FAILED 53031 define SHERR_LOAD_CHECKSUM_VERIFICATION_FAILED_MSG \ "Checksum verification failed" Change-Id: I5d1b585e094e92ac9a6d075de228d51a8554a60a
1 parent df4d019 commit ca24637

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+4704
-489
lines changed

modules/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ INCLUDE_DIRECTORIES(BEFORE
3333
file(GLOB api_module_SOURCES
3434
"devapi/*.cc"
3535
"dynamic_*.cc"
36+
"util/common/dump/checksums.cc"
3637
"util/common/dump/filtering_options.cc"
3738
"util/common/dump/utils.cc"
3839
"util/copy/copy_instance_options.cc"
@@ -59,6 +60,7 @@ file(GLOB api_module_SOURCES
5960
"util/dump/dumper.cc"
6061
"util/dump/export_table.cc"
6162
"util/dump/export_table_options.cc"
63+
"util/dump/indexes.cc"
6264
"util/dump/instance_cache.cc"
6365
"util/dump/progress_thread.cc"
6466
"util/dump/schema_dumper.cc"

0 commit comments

Comments
 (0)