Skip to content
Snippets Groups Projects
Commit 448332a7 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev
Browse files

TupleUpdatedByCurXactAndCmd () changed due to

   Fix very old bug which made tuples changed/inserted by a commnd
visible to command itself (so we had multiple update of updated tuples,
etc).
parent d8933d5c
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.15 1997/08/26 23:31:22 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.16 1997/08/29 09:12:20 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -145,7 +145,7 @@ TupleUpdatedByCurXactAndCmd(HeapTuple t) ...@@ -145,7 +145,7 @@ TupleUpdatedByCurXactAndCmd(HeapTuple t)
{ {
if (TransactionIdEquals(t->t_xmax, if (TransactionIdEquals(t->t_xmax,
GetCurrentTransactionId()) && GetCurrentTransactionId()) &&
t->t_cmax == GetCurrentCommandId()) CommandIdGEScanCommandId (t->t_cmax))
return true; return true;
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment