[CP] [FEAT MERGE]checkpoint diagnose virtual tablet
Co-authored-by: LiefB <954800091@qq.com>
This commit is contained in:
@ -72,6 +72,9 @@ public:
|
||||
|
||||
// calculate clog checkpoint and update in ls_meta
|
||||
int update_clog_checkpoint();
|
||||
void add_server_event_history_for_update_clog_checkpoint(
|
||||
const SCN &checkpoint_scn,
|
||||
const char *service_type);
|
||||
|
||||
// the service will flush and advance checkpoint
|
||||
// after flush, checkpoint_scn will be equal or greater than recycle_scn
|
||||
@ -94,6 +97,7 @@ private:
|
||||
|
||||
private:
|
||||
static const int64_t CLOG_GC_PERCENT = 60;
|
||||
static const int64_t ADD_SERVER_HISTORY_INTERVAL = 10 * 60 * 1000 * 1000; // 10 min
|
||||
|
||||
ObLS *ls_;
|
||||
logservice::ObILogHandler *loghandler_;
|
||||
@ -112,6 +116,9 @@ private:
|
||||
|
||||
palf::LSN prev_clog_checkpoint_lsn_;
|
||||
share::SCN prev_recycle_scn_;
|
||||
|
||||
int64_t update_clog_checkpoint_times_;
|
||||
int64_t last_add_server_history_time_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user