PG-310: Bucket is “Done” vs still being current/last. (#321)

A new column is added to mention that bucket is active or done. there is    
some timing based adjustment was required with that too.   

Co-authored-by: Hamid Akhtar <hamid.akhtar@percona.com>
This commit is contained in:
Ibrar Ahmed
2022-11-23 02:23:28 +05:00
committed by GitHub
parent b4ab2ccc84
commit f7860b472f
5 changed files with 34 additions and 21 deletions

View File

@@ -317,11 +317,9 @@ typedef struct pgssSharedState
pg_atomic_uint64 current_wbucket;
pg_atomic_uint64 prev_bucket_sec;
uint64 bucket_entry[MAX_BUCKETS];
char bucket_start_time[MAX_BUCKETS][60]; /* start time of the
* bucket */
struct tm bucket_start_time[MAX_BUCKETS]; /* start time of the bucket */
LWLock *errors_lock; /* protects errors hashtable
* search/modification */
/*
* These variables are used when pgsm_overflow_target is ON.
*