|
|
|
|
@ -942,7 +942,8 @@ __end_monitor_connect_loop:
|
|
|
|
|
if (mysql_thread___monitor_ping_interval < 3600000)
|
|
|
|
|
mysql_thread___monitor_history = mysql_thread___monitor_ping_interval * (mysql_thread___monitor_ping_max_failures + 1 );
|
|
|
|
|
}
|
|
|
|
|
rc=sqlite3_bind_int64(statement, 1, start_time-mysql_thread___monitor_history*1000); assert(rc==SQLITE_OK);
|
|
|
|
|
unsigned long long time_now=realtime_time();
|
|
|
|
|
rc=sqlite3_bind_int64(statement, 1, time_now-mysql_thread___monitor_history*1000); assert(rc==SQLITE_OK);
|
|
|
|
|
SAFE_SQLITE3_STEP(statement);
|
|
|
|
|
rc=sqlite3_clear_bindings(statement); assert(rc==SQLITE_OK);
|
|
|
|
|
rc=sqlite3_reset(statement); assert(rc==SQLITE_OK);
|
|
|
|
|
@ -1052,7 +1053,8 @@ __end_monitor_ping_loop:
|
|
|
|
|
if (mysql_thread___monitor_ping_interval < 3600000)
|
|
|
|
|
mysql_thread___monitor_history = mysql_thread___monitor_ping_interval * (mysql_thread___monitor_ping_max_failures + 1 );
|
|
|
|
|
}
|
|
|
|
|
rc=sqlite3_bind_int64(statement, 1, start_time-mysql_thread___monitor_history*1000); assert(rc==SQLITE_OK);
|
|
|
|
|
unsigned long long time_now=realtime_time();
|
|
|
|
|
rc=sqlite3_bind_int64(statement, 1, time_now-mysql_thread___monitor_history*1000); assert(rc==SQLITE_OK);
|
|
|
|
|
SAFE_SQLITE3_STEP(statement);
|
|
|
|
|
rc=sqlite3_clear_bindings(statement); assert(rc==SQLITE_OK);
|
|
|
|
|
rc=sqlite3_reset(statement); assert(rc==SQLITE_OK);
|
|
|
|
|
@ -1271,7 +1273,8 @@ __end_monitor_read_only_loop:
|
|
|
|
|
if (mysql_thread___monitor_ping_interval < 3600000)
|
|
|
|
|
mysql_thread___monitor_history = mysql_thread___monitor_ping_interval * (mysql_thread___monitor_ping_max_failures + 1 );
|
|
|
|
|
}
|
|
|
|
|
rc=sqlite3_bind_int64(statement, 1, start_time-mysql_thread___monitor_history*1000); assert(rc==SQLITE_OK);
|
|
|
|
|
unsigned long long time_now=realtime_time();
|
|
|
|
|
rc=sqlite3_bind_int64(statement, 1, time_now-mysql_thread___monitor_history*1000); assert(rc==SQLITE_OK);
|
|
|
|
|
SAFE_SQLITE3_STEP(statement);
|
|
|
|
|
rc=sqlite3_clear_bindings(statement); assert(rc==SQLITE_OK);
|
|
|
|
|
rc=sqlite3_reset(statement); assert(rc==SQLITE_OK);
|
|
|
|
|
@ -1386,7 +1389,8 @@ __end_monitor_replication_lag_loop:
|
|
|
|
|
if (mysql_thread___monitor_ping_interval < 3600000)
|
|
|
|
|
mysql_thread___monitor_history = mysql_thread___monitor_ping_interval * (mysql_thread___monitor_ping_max_failures + 1 );
|
|
|
|
|
}
|
|
|
|
|
rc=sqlite3_bind_int64(statement, 1, start_time-mysql_thread___monitor_history*1000); assert(rc==SQLITE_OK);
|
|
|
|
|
unsigned long long time_now=realtime_time();
|
|
|
|
|
rc=sqlite3_bind_int64(statement, 1, time_now-mysql_thread___monitor_history*1000); assert(rc==SQLITE_OK);
|
|
|
|
|
SAFE_SQLITE3_STEP(statement);
|
|
|
|
|
rc=sqlite3_clear_bindings(statement); assert(rc==SQLITE_OK);
|
|
|
|
|
rc=sqlite3_reset(statement); assert(rc==SQLITE_OK);
|
|
|
|
|
|