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

Commit5c54f63

Browse files
Fix rare missing cancellations in Hot Standby.
The machinery around XLOG_HEAP2_CLEANUP_INFO failedto correctly pass through the necessary informationon latestRemovedXid, avoiding cancellations in someinfrequent concurrent update/cleanup scenarios.Backpatchable fix to 9.0Detailed bug report and fix by Noah Misch,backpatchable version by me.
1 parentbd6aca8 commit5c54f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/heap/pruneheap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ heap_page_prune(Relation relation, Buffer buffer, TransactionId OldestXmin,
173173
* initialize the rest of our working state.
174174
*/
175175
prstate.new_prune_xid=InvalidTransactionId;
176-
prstate.latestRemovedXid=InvalidTransactionId;
176+
prstate.latestRemovedXid=*latestRemovedXid;
177177
prstate.nredirected=prstate.ndead=prstate.nunused=0;
178178
memset(prstate.marked,0,sizeof(prstate.marked));
179179

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp