diff options
author | Nathan Bossart <nathan@postgresql.org> | 2023-09-05 13:59:06 -0700 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2023-09-05 13:59:06 -0700 |
commit | 119c23eb9819213551cbe7e7665c8b493c59ceee (patch) | |
tree | aec20d6a03b4cbf0f342eeb44dfee744b2a8c8af /src/backend/storage/file/fileset.c | |
parent | a899d07b24a6e519790041eeea5d96cc534f384e (diff) | |
download | postgresql-119c23eb9819213551cbe7e7665c8b493c59ceee.tar.gz postgresql-119c23eb9819213551cbe7e7665c8b493c59ceee.zip |
Replace known_assigned_xids_lck with memory barriers.
This lock was introduced before memory barrier support was added,
and it is only used to guarantee proper memory ordering when
KnownAssignedXidsAdd() appends to the array without a lock. Now
that such memory barrier support exists, we can remove the lock and
use barriers instead.
Suggested-by: Tom Lane
Author: Michail Nikolaev
Reviewed-by: Robert Haas
Discussion: https://postgr.es/m/CANtu0oh0si%3DjG5z_fLeFtmYcETssQ08kLEa8b6TQqDm_cinroA%40mail.gmail.com
Diffstat (limited to 'src/backend/storage/file/fileset.c')
0 files changed, 0 insertions, 0 deletions