~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/transaction_log/t/database.test

  • Committer: Jay Pipes
  • Date: 2009-10-07 23:59:47 UTC
  • mto: (1234.1.1 push) (1237.2.10 push)
  • mto: This revision was merged to the branch mainline in revision 1193.
  • Revision ID: jpipes@serialcoder-20091007235947-18simrecnzwv8t1q
Phase 2 new replication work:

* Removes old replication.proto file, old command_transform library
* Removes use of korr.h macro calls in favor of GPB's CodedOutputStream
  API.
* Updates transaction_log, default_replicator, and filtered_replicator module
  to use new Transaction message.
* Updates ReplicationServices to construct the new Transaction messages and
  associated Statement sub-messages
* Corrects transaction boundaries.  AUTOCOMMIT now works properly, and I have
  added a new test case to verify AUTOCOMMIT variable modification of the way
  in which Transaction messages are bundled up and sent across to replicators.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# Tests simple CREATE DATABASE and DROP DATABASE statements and the command log
 
2
# Tests simple CREATE DATABASE and DROP DATABASE statements and the transaction log
3
3
#
4
4
 
5
5
# Populate log with some records...
6
 
--source suite/command_log/t/database.inc
 
6
--source suite/transaction_log/t/database.inc
7
7
 
8
 
# Read in the command.log.  We must cut out all the Timestamp: XXXXXX
 
8
# Read in the transaction.log.  We must cut out all the Timestamp: XXXXXX
9
9
# because they are not deterministic. The XID numbers are also removed
10
10
# these are deterministic, but they introduce a test dependancy making
11
11
# it difficult to add/remove tests in the future.
12
12
 
13
 
--exec ../drizzled/message/command_reader var/master-data/command.log | sed 's/\/\* SERVER ID: [0-9] TRX ID: [0-9]* SESSION ID: [0-9]* \*\/ //g' | sed 's/Timestamp: [0-9]*//g'
 
13
--exec ../drizzled/message/transaction_reader var/master-data/transaction.log | sed 's/\/\* SERVER ID: [0-9] TRX ID: [0-9]* SESSION ID: [0-9]* \*\/ //g' | sed 's/Timestamp: [0-9]*//g'
14
14
 
15
15
# Truncate the log file to reset for the next test
16
 
--source suite/command_log/t/truncate_log.inc
 
16
--source suite/transaction_log/t/truncate_log.inc