MySQL 9.2.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
GR_start_time_maintain Class Reference

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
 

Detailed Description

This class is used to maintain the timestamp of GR start.

During rejoin GR reset this timestamp to the current time.

Member Function Documentation

◆ check_if_quarantine_time_passed()

bool GR_start_time_maintain::check_if_quarantine_time_passed ( int  quarantime_time,
unsigned int *  seconds_since_member_join 
)
static

Calculates time difference between GR start and now and does the time comparison with quarantine time.

Parameters
[in]quarantime_timeQuarantine time
[out]seconds_since_member_joinTime difference between GR start and now
Return values
TrueDifference between GR start and now is bigger then quarantine
FalseDifference between GR start and now is smaller then quarantine

◆ reset_start_time()

void GR_start_time_maintain::reset_start_time ( )
static

Resets the gr_start_time to now.

During rejoin GR start time is reset to now.

Member Data Documentation

◆ gr_start_time

std::chrono::steady_clock::time_point GR_start_time_maintain::gr_start_time
staticprivate
Initial value:
=
std::chrono::steady_clock::time_point::min()

The documentation for this class was generated from the following files: