Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0fbcb9d

Browse files
Fix unused-but-set-variable compiler warning in reorderbuffer.c.
On v13, this variable is only used for an assertion, so addingPG_USED_FOR_ASSERTS_ONLY is sufficient to suppress this warning onbuilds with assertions disabled. Older versions are unsupported,and newer versions use the variable for more than the assertion, sothis patch only needs to be applied to REL_13_STABLE.Reviewed-by: Tom LaneDiscussion:https://postgr.es/m/Z1dCFnzrP24O8WNR%40nathan
1 parenta51ec08 commit0fbcb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/replication/logical/reorderbuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@ ReorderBufferSerializeTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
24682468
dlist_mutable_iterchange_i;
24692469
intfd=-1;
24702470
XLogSegNocurOpenSegNo=0;
2471-
Sizespilled=0;
2471+
SizespilledPG_USED_FOR_ASSERTS_ONLY=0;
24722472

24732473
elog(DEBUG2,"spill %u changes in XID %u to disk",
24742474
(uint32)txn->nentries_mem,txn->xid);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp