Skip to content

Commit 3de100c

Browse files
committed
Fix unused variable warning on build without asserts
1 parent a3554d5 commit 3de100c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/access/transam/twophase.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,8 +1546,8 @@ FinishPreparedTransaction(const char *gid, bool isCommit)
15461546
}
15471547
else
15481548
{
1549-
GlobalCSN global_csn = pg_atomic_read_u64(&proc->assignedGlobalCsn);
1550-
Assert(GlobalCSNIsInProgress(global_csn));
1549+
Assert(GlobalCSNIsInProgress(
1550+
pg_atomic_read_u64(&proc->assignedGlobalCsn)));
15511551
}
15521552

15531553
/*

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