mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0
into dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/tmp/merge_5.0 sql/log_event.cc: Auto merged sql/log_event.h: Auto merged sql/sql_class.h: Auto merged sql/sql_insert.cc: merge with 5.0 bug#22725 sql/sql_update.cc: merge with 5.0 bug#22725
This commit is contained in:
@@ -1359,7 +1359,14 @@ public:
|
||||
DYNAMIC_ARRAY user_var_events; /* For user variables replication */
|
||||
MEM_ROOT *user_var_events_alloc; /* Allocate above array elements here */
|
||||
|
||||
enum killed_state { NOT_KILLED=0, KILL_BAD_DATA=1, KILL_CONNECTION=ER_SERVER_SHUTDOWN, KILL_QUERY=ER_QUERY_INTERRUPTED };
|
||||
enum killed_state
|
||||
{
|
||||
NOT_KILLED=0,
|
||||
KILL_BAD_DATA=1,
|
||||
KILL_CONNECTION=ER_SERVER_SHUTDOWN,
|
||||
KILL_QUERY=ER_QUERY_INTERRUPTED,
|
||||
KILLED_NO_VALUE /* means neither of the states */
|
||||
};
|
||||
killed_state volatile killed;
|
||||
|
||||
/* scramble - random string sent to client on handshake */
|
||||
@@ -1610,7 +1617,8 @@ public:
|
||||
void end_statement();
|
||||
inline int killed_errno() const
|
||||
{
|
||||
return killed != KILL_BAD_DATA ? killed : 0;
|
||||
killed_state killed_val; /* to cache the volatile 'killed' */
|
||||
return (killed_val= killed) != KILL_BAD_DATA ? killed_val : 0;
|
||||
}
|
||||
inline void send_kill_message() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user