~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/include/maria_make_snapshot_for_comparison.inc

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Maria helper script
 
2
# Copies clean tables' data and index file to other directory
 
3
# Tables are $mms_tname1...$mms_tname[$mms_tables]
 
4
# They are later used as a reference to see if recovery works.
 
5
 
 
6
# API:
 
7
# set $mms_tname to a string, and $mms_tables to a number N, the script will
 
8
# cover tables mysqltest.$mms_tname1,...$mms_tnameN
 
9
 
 
10
connection admin;
 
11
 
 
12
let $mms_table_to_use=$mms_tables;
 
13
let $mms_purpose=comparison;
 
14
let $mms_copy=1;
 
15
 
 
16
--disable_query_log
 
17
--disable_warnings
 
18
eval drop database if exists mysqltest_for_$mms_purpose;
 
19
--enable_warnings
 
20
eval create database mysqltest_for_$mms_purpose;
 
21
--enable_query_log
 
22
 
 
23
while ($mms_table_to_use)
 
24
{
 
25
  # to serve as a reference, table must be in a clean state
 
26
  eval flush table $mms_tname$mms_table_to_use;
 
27
  -- source include/maria_make_snapshot.inc
 
28
  dec $mms_table_to_use;
 
29
}
 
30
let $mms_copy=0;
 
31
connection default;