Skip to content

Commit ad16e8b

Browse files
author
Maxim Orlov
committed
[PGPRO-6310] make compatible with atomic proc->xmin
Due to changing PROC->xmin type to pg_atomic_uint64.
1 parent 1b59ad0 commit ad16e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dmq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ dmq_receiver_loop(PG_FUNCTION_ARGS)
14431443
extra = dmq_receiver_start_hook(sender_name);
14441444

14451445
/* do not hold globalxmin. XXX: try to carefully release snaps */
1446-
MyProc->xmin = InvalidTransactionId;
1446+
pg_atomic_write_u64(&MyProc->xmin, InvalidTransactionId);
14471447

14481448
for (;;)
14491449
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy