~fallenpegasus/drizzle/work-foo

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/t/select_for_update.test

  • Committer: Continuous Integration
  • Date: 2012-03-04 12:46:01 UTC
  • mfrom: (2516.2.1 workspace)
  • Revision ID: ci@drizzle.org-20120304124601-nqj8znhwmhhbsbha
Merge staging tree to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Tests SELECT FOR UPDATE 
3
 
#
4
 
 
5
 
 
6
 
# Ignore startup/shutdown events
7
 
--disable_query_log
8
 
--source ../plugin/transaction_log/tests/t/truncate_log.inc
9
 
--enable_query_log
10
 
 
11
 
# Determine the starting point for the inno transaction log
12
 
--disable_query_log
13
 
let $max_transaction_id= `SELECT MAX(TRANSACTION_ID) FROM DATA_DICTIONARY.INNODB_REPLICATION_LOG`;
14
 
inc $max_transaction_id;
15
 
--enable_query_log
16
 
 
17
 
# Populate log with some records...
18
 
--source ../plugin/transaction_log/tests/t/select_for_update.inc
19
 
 
20
 
# Read in the transaction.log.
21
 
 
22
 
--replace_result $DRIZZLETEST_VARDIR VARDIR
23
 
--exec $DRIZZLE_TRX_READER $DRIZZLETEST_VARDIR/master-data/local/transaction.log
24
 
 
25
 
--echo
26
 
--echo Generating statements for innodb replication log
27
 
--exec $DRIZZLE_TRX_READER --use-innodb-replication-log -p $MASTER_MYPORT --start-transaction-id $max_transaction_id --ignore-events
28
 
 
29
 
# Truncate the log file to reset for the next test
30
 
--source ../plugin/transaction_log/tests/t/truncate_log.inc