mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
merge bug11754117-45670 fixes from 5.1.
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
#include "mysql_com.h"
|
||||
|
||||
class Relay_log_info;
|
||||
|
||||
class Log_event;
|
||||
|
||||
/**
|
||||
A table definition from the master.
|
||||
@ -261,6 +261,24 @@ CPP_UNNAMED_NS_START
|
||||
};
|
||||
|
||||
CPP_UNNAMED_NS_END
|
||||
|
||||
class Deferred_log_events
|
||||
{
|
||||
private:
|
||||
DYNAMIC_ARRAY array;
|
||||
Log_event *last_added;
|
||||
|
||||
public:
|
||||
Deferred_log_events(Relay_log_info *rli);
|
||||
~Deferred_log_events();
|
||||
/* queue for exection at Query-log-event time prior the Query */;
|
||||
int add(Log_event *ev);
|
||||
bool is_empty();
|
||||
bool execute(Relay_log_info *rli);
|
||||
void rewind();
|
||||
bool is_last(Log_event *ev) { return ev == last_added; };
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// NB. number of printed bit values is limited to sizeof(buf) - 1
|
||||
|
Reference in New Issue
Block a user