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

Commit41fdcf7

Browse files
Correct comment in Hot Standby nbtree handling
Logic is correct, matching handling of LP_DEAD elsewhere.
1 parenta7a3e71 commit41fdcf7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/backend/access/nbtree/nbtxlog.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -719,11 +719,11 @@ btree_xlog_delete_get_latestRemovedXid(xl_btree_delete *xlrec)
719719
UnlockReleaseBuffer(ibuffer);
720720

721721
/*
722-
*XXXIf all heap tuples were LP_DEAD then we will be returning
723-
* InvalidTransactionId here,causing conflict for all HS transactions.
724-
*That should happen very rarely (reasoning please?). Also note that
725-
*caller can't tellthedifference between this case andthefast path
726-
*exit above. May need to change that in future.
722+
* If all heap tuples were LP_DEAD then we will be returning
723+
* InvalidTransactionId here,which avoids conflicts. This matches
724+
*existing logic which assumes that LP_DEAD tuples must already be
725+
*older thanthelatestRemovedXid onthecleanup record that
726+
*set them as LP_DEAD, hence must already have generated a conflict.
727727
*/
728728
returnlatestRemovedXid;
729729
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp