mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MWL#234: After-review fixes, including better names for the new system variables.
This commit is contained in:
@@ -491,16 +491,16 @@ struct sql_ex_info
|
||||
#define LOG_EVENT_RELAY_LOG_F 0x40
|
||||
|
||||
/**
|
||||
@def LOG_EVENT_DO_NOT_REPLICATE_F
|
||||
@def LOG_EVENT_SKIP_REPLICATION_F
|
||||
|
||||
Flag set by application creating the event (with @@do_not_replicate); the
|
||||
Flag set by application creating the event (with @@skip_replication); the
|
||||
slave will skip replication of such events if
|
||||
--replicate-ignore-do-not-replicate is set.
|
||||
--replicate-events-marked-for-skip is false.
|
||||
|
||||
This is a MariaDB flag; we allocate it from the end of the available
|
||||
values to reduce risk of conflict with new MySQL flags.
|
||||
*/
|
||||
#define LOG_EVENT_DO_NOT_REPLICATE_F 0x8000
|
||||
#define LOG_EVENT_SKIP_REPLICATION_F 0x8000
|
||||
|
||||
|
||||
/**
|
||||
@@ -670,10 +670,10 @@ typedef struct st_print_event_info
|
||||
uint thread_id;
|
||||
bool thread_id_printed;
|
||||
/*
|
||||
Track when @@do_not_replicate changes so we need to output a SET
|
||||
Track when @@skip_replication changes so we need to output a SET
|
||||
statement for it.
|
||||
*/
|
||||
int do_not_replicate;
|
||||
int skip_replication;
|
||||
|
||||
st_print_event_info();
|
||||
|
||||
@@ -929,7 +929,7 @@ public:
|
||||
/**
|
||||
Some 16 flags. See the definitions above for LOG_EVENT_TIME_F,
|
||||
LOG_EVENT_FORCED_ROTATE_F, LOG_EVENT_THREAD_SPECIFIC_F,
|
||||
LOG_EVENT_SUPPRESS_USE_F, and LOG_EVENT_DO_NOT_REPLICATE_F for notes.
|
||||
LOG_EVENT_SUPPRESS_USE_F, and LOG_EVENT_SKIP_REPLICATION_F for notes.
|
||||
*/
|
||||
uint16 flags;
|
||||
|
||||
@@ -3933,8 +3933,8 @@ public:
|
||||
DBUG_PRINT("enter", ("m_incident: %d", m_incident));
|
||||
m_message.str= NULL; /* Just as a precaution */
|
||||
m_message.length= 0;
|
||||
/* Replicate the incident irregardless of @@do_not_replicate. */
|
||||
flags&= ~LOG_EVENT_DO_NOT_REPLICATE_F;
|
||||
/* Replicate the incident irregardless of @@skip_replication. */
|
||||
flags&= ~LOG_EVENT_SKIP_REPLICATION_F;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
@@ -3944,8 +3944,8 @@ public:
|
||||
DBUG_ENTER("Incident_log_event::Incident_log_event");
|
||||
DBUG_PRINT("enter", ("m_incident: %d", m_incident));
|
||||
m_message= msg;
|
||||
/* Replicate the incident irregardless of @@do_not_replicate. */
|
||||
flags&= ~LOG_EVENT_DO_NOT_REPLICATE_F;
|
||||
/* Replicate the incident irregardless of @@skip_replication. */
|
||||
flags&= ~LOG_EVENT_SKIP_REPLICATION_F;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user