mirror of
https://github.com/MariaDB/server.git
synced 2025-07-02 14:22:51 +03:00
MDEV-27595 Backport SQL service, introduced by MDEV-19275.
The SQL SERVICE backported into the 10.4.
This commit is contained in:
@ -1035,6 +1035,7 @@ struct THD_count
|
||||
{
|
||||
static Atomic_counter<uint32_t> count;
|
||||
static uint value() { return static_cast<uint>(count); }
|
||||
static uint connection_thd_count();
|
||||
THD_count() { count++; }
|
||||
~THD_count() { count--; }
|
||||
};
|
||||
@ -3622,6 +3623,11 @@ public:
|
||||
user_time= t;
|
||||
set_time();
|
||||
}
|
||||
inline void force_set_time(my_time_t t, ulong sec_part)
|
||||
{
|
||||
start_time= system_time.sec= t;
|
||||
start_time_sec_part= system_time.sec_part= sec_part;
|
||||
}
|
||||
/*
|
||||
this is only used by replication and BINLOG command.
|
||||
usecs > TIME_MAX_SECOND_PART means "was not in binlog"
|
||||
@ -3633,15 +3639,9 @@ public:
|
||||
else
|
||||
{
|
||||
if (sec_part <= TIME_MAX_SECOND_PART)
|
||||
{
|
||||
start_time= system_time.sec= t;
|
||||
start_time_sec_part= system_time.sec_part= sec_part;
|
||||
}
|
||||
force_set_time(t, sec_part);
|
||||
else if (t != system_time.sec)
|
||||
{
|
||||
start_time= system_time.sec= t;
|
||||
start_time_sec_part= system_time.sec_part= 0;
|
||||
}
|
||||
force_set_time(t, 0);
|
||||
else
|
||||
{
|
||||
start_time= t;
|
||||
|
Reference in New Issue
Block a user