mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Remove obsolete speculative insert cleanup in ReorderBuffer.
Commit 4daa140a2f introduced proper decoding for speculative aborts. As a
result, the internal state is guaranteed to be clean when a new
speculative insert is encountered. This patch removes the defensive
cleanup code that is no longer reachable.
Author: Antonin Houska <ah@cybertec.at>
Discussion: https://postgr.es/m/23256.1772702981@localhost
This commit is contained in:
parent
d8879d34b9
commit
5f39698c90
1 changed files with 2 additions and 6 deletions
|
|
@ -2447,12 +2447,8 @@ ReorderBufferProcessTXN(ReorderBuffer *rb, ReorderBufferTXN *txn,
|
|||
* CheckTableNotInUse() and locking.
|
||||
*/
|
||||
|
||||
/* clear out a pending (and thus failed) speculation */
|
||||
if (specinsert != NULL)
|
||||
{
|
||||
ReorderBufferFreeChange(rb, specinsert, true);
|
||||
specinsert = NULL;
|
||||
}
|
||||
/* Previous speculative insertion must be aborted */
|
||||
Assert(specinsert == NULL);
|
||||
|
||||
/* and memorize the pending insertion */
|
||||
dlist_delete(&change->node);
|
||||
|
|
|
|||
Loading…
Reference in a new issue