Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)