summaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorAndres Freund2022-08-23 03:16:50 +0000
committerAndres Freund2022-08-23 03:16:50 +0000
commitcd063344fb801a90a40923a5b8aefe4eb8d80762 (patch)
treea9248822b82059ddb2cd7b9f36856d6a1b180f81 /src/include/miscadmin.h
parentba8321349bc02423aa4d49ebb5d579ec313cf930 (diff)
pgstat: Acquire lock when reading variable-numbered stats
Somewhere during the development of the patch acquiring a lock during read access to variable-numbered stats got lost. The missing lock acquisition won't cause corruption, but can lead to reading torn values when accessing stats. Add the missing lock acquisitions. Reported-by: Greg Stark <stark@mit.edu> Reviewed-by: "Drouvot, Bertrand" <bdrouvot@amazon.com> Reviewed-by: Andres Freund <andres@anarazel.de> Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/CAM-w4HMYkM_DkYhWtUGV+qE_rrBxKOzOF0+5faozxO3vXrc9wA@mail.gmail.com Backpatch: 15-
Diffstat (limited to 'src/include/miscadmin.h')
0 files changed, 0 insertions, 0 deletions