Merge pull request #275 from EngineeredVirus/main

[PG-455] PGSM doesn't gather data for some pgsm_bucket_time settings
pull/269/head^2
Ibrar Ahmed 2022-06-29 00:30:25 +05:00 committed by GitHub
commit 14c390d201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}