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

Commit107cbc9

Browse files
committed
Fix variable names mentioned in comment to match the code.
Also, in another comment, explain why holding an insertion slot is acritical section.Per review by Amit Kapila.
1 parent59c02a3 commit107cbc9

File tree

1 file changed

+5
-3
lines changed
  • src/backend/access/transam

1 file changed

+5
-3
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,8 @@ ReserveXLogInsertLocation(int size, XLogRecPtr *StartPos, XLogRecPtr *EndPos,
13221322
*
13231323
* A log-switch record is handled slightly differently. The rest of the
13241324
* segment will be reserved for this insertion, as indicated by the returned
1325-
* *EndPos_p value. However, if we are already at the beginning of the current
1326-
* segment, *StartPos_p and *EndPos_p are set to the current location without
1325+
* *EndPos value. However, if we are already at the beginning of the current
1326+
* segment, *StartPos and *EndPos are set to the current location without
13271327
* reserving any space, and the function returns false.
13281328
*/
13291329
staticbool
@@ -1575,7 +1575,9 @@ WALInsertSlotAcquireOne(int slotno)
15751575
/*
15761576
* Lock out cancel/die interrupts until we exit the code section protected
15771577
* by the slot. This ensures that interrupts will not interfere with
1578-
* manipulations of data structures in shared memory.
1578+
* manipulations of data structures in shared memory. There is no cleanup
1579+
* mechanism to release the slot if the backend dies while holding one,
1580+
* so make this a critical section.
15791581
*/
15801582
START_CRIT_SECTION();
15811583

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp