MySQL  8.0.23
Source Code Documentation
rpl_constants.h
Go to the documentation of this file.
1 /* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef RPL_CONSTANTS_H
24 #define RPL_CONSTANTS_H
25 
26 /*
27  Constants used to parse the stream of bytes sent by a slave
28  when commands COM_BINLOG_DUMP or COM_BINLOG_DUMP_GTID are
29  sent.
30 */
31 const int BINLOG_POS_INFO_SIZE = 8;
34 const int BINLOG_FLAGS_INFO_SIZE = 2;
37 
38 /**
39  If there is no more events to send send a @ref page_protocol_basic_err_packet
40  instead of blocking the connection.
41 
42  @sa ::COM_BINLOG_DUMP, ::COM_BINLOG_DUMP_GTID
43 */
44 const int BINLOG_DUMP_NON_BLOCK = 1 << 0;
45 
46 /**
47  Enumeration of the reserved formats of Binlog extra row information
48 */
50  /** Ndb format */
51  ERIF_NDB = 0,
52 
53  /** Reserved formats 0 -> 63 inclusive */
55 
56  /**
57  Available / uncontrolled formats
58  64 -> 254 inclusive
59  */
60  ERIF_OPEN1 = 64,
61  ERIF_OPEN2 = 65,
62 
64 
65  /**
66  Multi-payload format 255
67 
68  Length is total length, payload is sequence of
69  sub-payloads with their own headers containing
70  length + format.
71  */
72  ERIF_MULTI = 255
73 };
74 
75 #endif /* RPL_CONSTANTS_H */
ERIF_OPEN1
@ ERIF_OPEN1
Available / uncontrolled formats 64 -> 254 inclusive.
Definition: rpl_constants.h:60
ERIF_LASTOPEN
@ ERIF_LASTOPEN
Definition: rpl_constants.h:63
BINLOG_NAME_SIZE_INFO_SIZE
const int BINLOG_NAME_SIZE_INFO_SIZE
Definition: rpl_constants.h:36
ExtraRowInfoFormat
ExtraRowInfoFormat
Enumeration of the reserved formats of Binlog extra row information.
Definition: rpl_constants.h:49
ERIF_MULTI
@ ERIF_MULTI
Multi-payload format 255.
Definition: rpl_constants.h:72
BINLOG_DATA_SIZE_INFO_SIZE
const int BINLOG_DATA_SIZE_INFO_SIZE
Definition: rpl_constants.h:32
BINLOG_SERVER_ID_INFO_SIZE
const int BINLOG_SERVER_ID_INFO_SIZE
Definition: rpl_constants.h:35
ERIF_NDB
@ ERIF_NDB
Ndb format.
Definition: rpl_constants.h:51
BINLOG_DUMP_NON_BLOCK
const int BINLOG_DUMP_NON_BLOCK
If there is no more events to send send a ERR_Packet instead of blocking the connection.
Definition: rpl_constants.h:44
BINLOG_POS_INFO_SIZE
const int BINLOG_POS_INFO_SIZE
Definition: rpl_constants.h:31
BINLOG_POS_OLD_INFO_SIZE
const int BINLOG_POS_OLD_INFO_SIZE
Definition: rpl_constants.h:33
BINLOG_FLAGS_INFO_SIZE
const int BINLOG_FLAGS_INFO_SIZE
Definition: rpl_constants.h:34
ERIF_LASTRESERVED
@ ERIF_LASTRESERVED
Reserved formats 0 -> 63 inclusive.
Definition: rpl_constants.h:54
ERIF_OPEN2
@ ERIF_OPEN2
Definition: rpl_constants.h:61