mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge branch '10.0' into 10.0-galera
This commit is contained in:
@ -687,9 +687,11 @@ typedef struct system_status_var
|
||||
ulong ha_read_key_count;
|
||||
ulong ha_read_next_count;
|
||||
ulong ha_read_prev_count;
|
||||
ulong ha_read_retry_count;
|
||||
ulong ha_read_rnd_count;
|
||||
ulong ha_read_rnd_next_count;
|
||||
ulong ha_read_rnd_deleted_count;
|
||||
|
||||
/*
|
||||
This number doesn't include calls to the default implementation and
|
||||
calls made by range access. The intent is to count only calls made by
|
||||
@ -723,6 +725,8 @@ typedef struct system_status_var
|
||||
ulong select_range_count_;
|
||||
ulong select_range_check_count_;
|
||||
ulong select_scan_count_;
|
||||
ulong update_scan_count;
|
||||
ulong delete_scan_count;
|
||||
ulong executed_triggers;
|
||||
ulong long_query_count;
|
||||
ulong filesort_merge_passes_;
|
||||
@ -3006,12 +3010,12 @@ public:
|
||||
set_start_time();
|
||||
start_utime= utime_after_lock= microsecond_interval_timer();
|
||||
}
|
||||
inline void set_time(my_hrtime_t t)
|
||||
inline void set_time(my_hrtime_t t)
|
||||
{
|
||||
user_time= t;
|
||||
set_time();
|
||||
}
|
||||
inline void set_time(my_time_t t, ulong sec_part)
|
||||
inline void set_time(my_time_t t, ulong sec_part)
|
||||
{
|
||||
my_hrtime_t hrtime= { hrtime_from_time(t) + sec_part };
|
||||
set_time(hrtime);
|
||||
@ -3803,7 +3807,7 @@ private:
|
||||
|
||||
/* Protect against add/delete of temporary tables in parallel replication */
|
||||
void rgi_lock_temporary_tables();
|
||||
void rgi_unlock_temporary_tables();
|
||||
void rgi_unlock_temporary_tables(bool clear);
|
||||
bool rgi_have_temporary_tables();
|
||||
public:
|
||||
/*
|
||||
@ -3827,15 +3831,15 @@ public:
|
||||
if (rgi_slave)
|
||||
rgi_lock_temporary_tables();
|
||||
}
|
||||
inline void unlock_temporary_tables()
|
||||
inline void unlock_temporary_tables(bool clear)
|
||||
{
|
||||
if (rgi_slave)
|
||||
rgi_unlock_temporary_tables();
|
||||
rgi_unlock_temporary_tables(clear);
|
||||
}
|
||||
inline bool have_temporary_tables()
|
||||
{
|
||||
return (temporary_tables ||
|
||||
(rgi_slave && rgi_have_temporary_tables()));
|
||||
(rgi_slave && unlikely(rgi_have_temporary_tables())));
|
||||
}
|
||||
|
||||
#ifdef WITH_WSREP
|
||||
|
Reference in New Issue
Block a user