BUGFI: forbid frequent freeze
This commit is contained in:
@ -170,6 +170,10 @@ public:
|
||||
bool need_do_writing_throttle() const;
|
||||
bool check_clock_over_seq(const int64_t seq);
|
||||
int64_t expected_wait_time(const int64_t seq) const;
|
||||
int64_t get_max_cached_memstore_size() const
|
||||
{
|
||||
return MAX_CACHED_GROUP_COUNT * ATOMIC_LOAD(&nway_) * (PAGE_SIZE + ACHUNK_PRESERVE_SIZE);
|
||||
}
|
||||
private:
|
||||
ObQSync& get_qs() {
|
||||
static ObQSync s_qs;
|
||||
|
||||
@ -149,6 +149,9 @@ public:
|
||||
int64_t hazard = hlist_.hazard();
|
||||
return hazard == INT64_MAX? 0: hazard;
|
||||
}
|
||||
int64_t get_max_cached_memstore_size() const {
|
||||
return arena_.get_max_cached_memstore_size();
|
||||
}
|
||||
int64_t get_mem_total_memstore_used() const { return arena_.hold(); }
|
||||
void log_frozen_memstore_info(char* buf, int64_t limit) {
|
||||
if (NULL != buf && limit > 0) {
|
||||
|
||||
Reference in New Issue
Block a user