[PG-455] PGSM doesn't gather data for some pgsm_bucket_time settings

Fixing the issue introduced by 7efc3fa.
pull/275/head
Hamid Akhtar 2022-06-29 00:22:40 +05:00
parent 7efc3fa50e
commit ebfade5e92
1 changed files with 1 additions and 1 deletions

View File

@ -2111,7 +2111,7 @@ get_next_wbucket(pgssSharedState *pgss)
* definitely make the while condition to fail, we can stop the loop as another
* thread has already updated prev_bucket_sec.
*/
if ((current_sec - current_bucket_sec) < ((uint64)PGSM_BUCKET_TIME * 1000LU * 1000LU))
if ((current_sec - current_bucket_sec) < (uint64)PGSM_BUCKET_TIME)
{
return pg_atomic_read_u64(&pgss->current_wbucket);
}