diff options
author | Andres Freund <andres@anarazel.de> | 2022-08-22 20:16:50 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-08-22 20:17:45 -0700 |
commit | 045ec347857b66e8a494b2c12126a6d476702065 (patch) | |
tree | 148fe30dac9b281d1ff7d704ba2b457d9eaff35b /src/backend/replication/logical/reorderbuffer.c | |
parent | a2caf182a2edcee7b1c00036b7dba6762941473c (diff) | |
download | postgresql-045ec347857b66e8a494b2c12126a6d476702065.tar.gz postgresql-045ec347857b66e8a494b2c12126a6d476702065.zip |
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/backend/replication/logical/reorderbuffer.c')
0 files changed, 0 insertions, 0 deletions