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)