~drizzle-trunk/drizzle/development

Viewing all changes in revision 1143.2.15.

  • Committer: Jay Pipes
  • Date: 2009-10-13 18:47:53 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-20091013184753-aw5v6tfk8x5ynej9
This patch does the following:

1) The transaction log now writes a 4-byte header containing the type of 
   message which follows the header.  This allows us to future-proof the
   transaction log in order to allow BLOBs to be written in chunks to the
   log file along with GPB Transaction messages.

2) The algorithm which writes Transaction messages to the transaction log
   has been improved.  Instead of 3 separate calls to pwrite(), I have now
   reduced that to a single call to pwrite() and a raw buffer is used to 
   construct the raw bytes that get written in bulk to the transaction log
   at the atomic offset.

3) Update the transaction_reader and transaction_writer programs for the 
   above changes.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: