File: ndb_binlog_wait_own_changes.inc

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (19 lines) | stat: -rw-r--r-- 1,014 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Wait until DML changes by own session has been written to the
# local binlog by the ndb_binlog thread.
#
# This is necessary since the ndb_binlog thread is asynchronously recording
# changes that happens in NDB. Basically it monitors all tables it's interested
# in by settting up subscriptions which  will cause NDB to send a change
# notification(event) when data in the table changes. These notifications
# will then be processed by the ndb_binlog thread and written (injected) into
# the local binlog of the MySQL Server.
#
# There are several ways to wait for own session changes and this include file
# uses the mechanism implemented in mysqltest which is triggered
# when saving the current position in the binlog. In order to see #your own
# writes" mysqltest will wait for the epoch of sessions last change to be
# reported as handled by the ndb_binlog thread, after that it will save the
# binlog's position in the normal way (using SQL query).

echo # Wait for ndb_binlog thread...;
--save_master_pos