Skip to content

Commit 7181a1f

Browse files
committed
WL#11796 Ndb : Basic support for merging backups via ndb_restore
ndb_restore is extended to support a new --remap-column option which allows per-column remapping functions to be defined which will be applied during restore of a backup. The offset column remapping function can be used to modify the values of integer columns restored from a backup so that they are in a different range to those already stored in that cluster. ndb_desc is extended to support two new options : --context : Gives more information about a table's context to simplify automatic output parsing --autoinc : Gives the current next autoincrement value for the table, if available These new options can be used together to automatically merge backups where autoincrement column values are offset. Seven new MTR test cases are defined : ndb_desc_extra ndb_restore_conv_remap_basic ndb_restore_conv_remap_auto ndb_restore_conv_remap_debug ndb_restore_conv_remap_negative ndb_restore_conv_remap ndb_restore_conv_pk_slice_remap Approved by : Priyanka Sangam <priyanka.sangam@oracle.com>
1 parent db4ef21 commit 7181a1f

20 files changed

+6797
-63
lines changed

mysql-test/suite/ndb/include/ndb_desc_print.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ replace_regex /Version: [0-9]*/Version: Any/
1717
/NDB\$BLOB_[0-9]*_/NDB$BLOB_XX_/
1818
/Length of frm data: [0-9]*/Length of frm data: XXX/
1919
/IndexTable [0-9]*/IndexTable XX/
20-
/^([0-9][0-9]*) [0-9 ]*/\1 .../;
20+
/^([0-9][0-9]*) [0-9 ]*/\1 .../
21+
/Table id: [0-9]*/Table id: XXX/;
2122
--exec $ndb_desc_cmd
2223

2324
# Reset argument variable in order to detect missing assignment

0 commit comments

Comments
 (0)