![]() |
MySQL 9.2.0
Source Code Documentation
|
This class is used to maintain the timestamp of GR start. More...
#include <management.h>
Static Public Member Functions | |
static void | reset_start_time () |
Resets the gr_start_time to now. More... | |
static bool | check_if_quarantine_time_passed (int quarantime_time, unsigned int *seconds_since_member_join) |
Calculates time difference between GR start and now and does the time comparison with quarantine time. More... | |
Static Private Attributes | |
static std::chrono::steady_clock::time_point | gr_start_time |
This class is used to maintain the timestamp of GR start.
During rejoin GR reset this timestamp to the current time.
|
static |
Calculates time difference between GR start and now and does the time comparison with quarantine time.
[in] | quarantime_time | Quarantine time |
[out] | seconds_since_member_join | Time difference between GR start and now |
True | Difference between GR start and now is bigger then quarantine |
False | Difference between GR start and now is smaller then quarantine |
|
static |
Resets the gr_start_time to now.
During rejoin GR start time is reset to now.
|
staticprivate |