| 1 |
# Wait until DML changes by own session has been written to the |
| 2 |
# local binlog by the ndb_binlog thread. |
| 3 |
# |
| 4 |
# This is necessary since the ndb_binlog thread is asynchronously recording |
| 5 |
# changes that happens in NDB. Basically it monitors all tables it's interested |
| 6 |
# in by settting up subscriptions which will cause NDB to send a change |
| 7 |
# notification(event) when data in the table changes. These notifications |
| 8 |
# will then be processed by the ndb_binlog thread and written (injected) into |
| 9 |
# the local binlog of the MySQL Server. |
| 10 |
# |
| 11 |
# There are several ways to wait for own session changes and this include file |
| 12 |
# uses the mechanism implemented in mysqltest which is triggered |
| 13 |
# when saving the current position in the binlog. In order to see #your own |
| 14 |
# writes" mysqltest will wait for the epoch of sessions last change to be |
| 15 |
# reported as handled by the ndb_binlog thread, after that it will save the |
| 16 |
# binlog's position in the normal way (using SQL query). |
| 17 |
|
| 18 |
echo # Wait for ndb_binlog thread...; |
| 19 |
--save_master_pos |