~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Ignore startup/shutdown events
--disable_query_log
--source ../plugin/transaction_log/tests/t/truncate_log.inc
--enable_query_log

# Determine the starting point for the inno transaction log
--disable_query_log
let $max_transaction_id= `SELECT MAX(TRANSACTION_ID) FROM DATA_DICTIONARY.INNODB_REPLICATION_LOG`;
inc $max_transaction_id;
--enable_query_log

# Populate log with some records...
--source ../plugin/transaction_log/tests/t/create_table.inc

# Read in the transaction.log.

--exec ../plugin/transaction_log/utilities/transaction_reader var/master-data/local/transaction.log

--echo
--echo Generating statements for innodb replication log
--exec ../plugin/transaction_log/utilities/transaction_reader --use-innodb-replication-log -p $MASTER_MYPORT --start-transaction-id $max_transaction_id --ignore-events

# Truncate the log file to reset for the next test
--source ../plugin/transaction_log/tests/t/truncate_log.inc