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

Commitd5a7bd5

Browse files
committed
Fix variable reference in comment
This used to say "nsubxcnt isn't decreased when subtransactionsabort", but there's no variable called nsubxcnt. Commit8548ddcchanged it to "subxcnt", among other typo fixes, but that was wrongtoo: the comment actually talks about txn->nsubtxns. That's the fieldthat's incremented but never decremented and is used for theallocation earlier in the function.
1 parent94bb6c4 commitd5a7bd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,9 +1861,9 @@ ReorderBufferCopySnap(ReorderBuffer *rb, Snapshot orig_snap,
18611861
snap->subxip[i++]=txn->xid;
18621862

18631863
/*
1864-
*subxcnt isn't decreased when subtransactions abort, so count manually.
1865-
* Since it's an upper boundary it is safe to use it for the allocation
1866-
* above.
1864+
*txn->nsubtxns isn't decreased when subtransactions abort, so count
1865+
*manually.Since it's an upper boundary it is safe to use it for the
1866+
*allocationabove.
18671867
*/
18681868
snap->subxcnt=1;
18691869

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp