Commit 2e54d88a authored by Simon Riggs's avatar Simon Riggs

Correct comment in Hot Standby nbtree handling

Logic is correct, matching handling of LP_DEAD elsewhere.
parent 284c464b
...@@ -714,11 +714,11 @@ btree_xlog_delete_get_latestRemovedXid(xl_btree_delete *xlrec) ...@@ -714,11 +714,11 @@ btree_xlog_delete_get_latestRemovedXid(xl_btree_delete *xlrec)
UnlockReleaseBuffer(ibuffer); UnlockReleaseBuffer(ibuffer);
/* /*
* XXX If all heap tuples were LP_DEAD then we will be returning * If all heap tuples were LP_DEAD then we will be returning
* InvalidTransactionId here, causing conflict for all HS transactions. * InvalidTransactionId here, which avoids conflicts. This matches
* That should happen very rarely (reasoning please?). Also note that * existing logic which assumes that LP_DEAD tuples must already be
* caller can't tell the difference between this case and the fast path * older than the latestRemovedXid on the cleanup record that
* exit above. May need to change that in future. * set them as LP_DEAD, hence must already have generated a conflict.
*/ */
return latestRemovedXid; return latestRemovedXid;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment