mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Updates from review
mysql-test/include/ndb_backup.inc: We are writting test cases that use the ndb backup. This new include contains all the code needed to start the backup and grab the backup ID for the test. By moving the code here it will be easy to reuse mysql-test/include/ndb_restore_master.inc: We are writting test cases that use the ndb backup and restore. This new include contains all the code needed to restore a master cluster from the backup done with ndb_backup.inc. By moving the code here it will be easy to reuse mysql-test/t/ndb_dd_backuprestore.test: Updated with suggestions from Jonas
This commit is contained in:
12
mysql-test/include/ndb_restore_master.inc
Normal file
12
mysql-test/include/ndb_restore_master.inc
Normal file
@ -0,0 +1,12 @@
|
||||
######################################################
|
||||
# By JBM 2006-02-16 So that the code is not repeated #
|
||||
# in test cases and can be reused. #
|
||||
######################################################
|
||||
|
||||
--exec $NDB_TOOLS_DIR/ndb_restore --no-defaults --ndb-connectstring="localhost:$NDBCLUS
|
||||
TER_PORT" -p 8 -b $the_backup_id -n 1 -m -r --print --print_meta $NDB_BACKUP_DIR/BACKUP
|
||||
/BACKUP-$the_backup_id >> $NDB_TOOLS_OUTPUT
|
||||
|
||||
--exec $NDB_TOOLS_DIR/ndb_restore --no-defaults --ndb-connectstring="localhost:$NDBCLUS
|
||||
TER_PORT" -p 8 -b $the_backup_id -n 2 -r --print --print_meta $NDB_BACKUP_DIR/BACKUP/B
|
||||
ACKUP-$the_backup_id >> $NDB_TOOLS_OUTPUT
|
Reference in New Issue
Block a user