[PG-455] PGSM doesn't gather data for some pgsm_bucket_time settings
Fixing the issue introduced by 7efc3fa
.
pull/275/head
parent
7efc3fa50e
commit
ebfade5e92
|
@ -2111,7 +2111,7 @@ get_next_wbucket(pgssSharedState *pgss)
|
||||||
* definitely make the while condition to fail, we can stop the loop as another
|
* definitely make the while condition to fail, we can stop the loop as another
|
||||||
* thread has already updated prev_bucket_sec.
|
* 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);
|
return pg_atomic_read_u64(&pgss->current_wbucket);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue