Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PGPRO-7565] use 64-bit atomic access for MyPgXact xid/xmin #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/dmq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,11 @@ dmq_receiver_loop(PG_FUNCTION_ARGS)
extra = dmq_receiver_start_hook(sender_name);

/* do not hold globalxmin. XXX: try to carefully release snaps */
#ifdef PGPRO_EE
pg_atomic_write_u64(&MyPgXact->xmin, InvalidTransactionId);
#else
MyPgXact->xmin = InvalidTransactionId;
#endif

for (;;)
{
Expand Down