~vkolesnikov/pbxt/pbxt-07-diskfull

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/include/ndb_backup.inc

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
######################################################
 
2
# By JBM 2006-02-16 So that the code is not repeated #
 
3
# in test cases and can be reused.                   #
 
4
######################################################
 
5
--exec $NDB_MGM --no-defaults --ndb-connectstring="localhost:$NDBCLUSTER_PORT" -e "start backup" >> $NDB_TOOLS_OUTPUT
 
6
 
 
7
# there is no neat way to find the backupid, this is a hack to find it...
 
8
 
 
9
--exec $NDB_TOOLS_DIR/ndb_select_all --ndb-connectstring="localhost:$NDBCLUSTER_PORT" -d sys --delimiter=',' SYSTAB_0 | grep 520093696 > $MYSQLTEST_VARDIR/tmp.dat
 
10
 
 
11
CREATE TEMPORARY TABLE IF NOT EXISTS test.backup_info (id INT, backup_id INT) ENGINE = HEAP;
 
12
 
 
13
DELETE FROM test.backup_info;
 
14
 
 
15
LOAD DATA INFILE '../tmp.dat' INTO TABLE test.backup_info FIELDS TERMINATED BY ',';
 
16
 
 
17
--replace_column 1 <the_backup_id>
 
18
 
 
19
SELECT @the_backup_id:=backup_id FROM test.backup_info;
 
20
 
 
21
let the_backup_id=`select @the_backup_id`;
 
22
 
 
23
DROP TABLE test.backup_info;
 
24