~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/replication.rst

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
sub-messages. There is a single main "envelope" message, Transaction, that
7
7
is passed to plugins that subscribe to the replication stream.
8
8
 
 
9
Configuration Options
 
10
---------------------
 
11
 
 
12
**transaction_message_threshold**
 
13
 
 
14
    Controls the size, in bytes, of the Transaction messages. When a Transaction
 
15
    message exceeds this size, a new Transaction message with the same
 
16
    transaction ID will be created to continue the replication events.
 
17
    See :ref:`bulk-operations` below.
 
18
 
 
19
 
 
20
**replicate_query**
 
21
 
 
22
    Controls whether the originating SQL query will be included within each
 
23
    Statement message contained in the enclosing Transaction message. The
 
24
    default global value is FALSE which will not include the query in the
 
25
    messages. It can be controlled per session, as well. For example:
 
26
 
 
27
    ``drizzle> set @@replicate_query = 1;``
9
28
 
10
29
Message Definitions
11
30
-------------------
103
122
a data change.
104
123
 
105
124
 
 
125
.. _bulk-operations:
 
126
 
106
127
How Bulk Operations Work
107
128
------------------------
108
129
 
200
221
* For a transaction which is made up of multiple messages, and at least
201
222
  one message has already been sent through the replication stream, then
202
223
  the Transaction message will contain a Statement message with type =
203
 
  ROLLBACK.
 
 
b'\\ No newline at end of file'
 
224
  ROLLBACK.