Skip to content

Commit cc268d6

Browse files
pashkinelfeakorotkov
authored andcommitted
Disable assert in clog
This is required to have rewind functionality on heap tables
1 parent e7151ee commit cc268d6

File tree

1 file changed

+4
-4
lines changed
  • src/backend/access/transam

1 file changed

+4
-4
lines changed

src/backend/access/transam/clog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,10 @@ TransactionIdSetStatusBit(TransactionId xid, XidStatus status, XLogRecPtr lsn, i
591591
* Current state change should be from 0 or subcommitted to target state
592592
* or we should already be there when replaying changes during recovery.
593593
*/
594-
Assert(curval == 0 ||
595-
(curval == TRANSACTION_STATUS_SUB_COMMITTED &&
596-
status != TRANSACTION_STATUS_IN_PROGRESS) ||
597-
curval == status);
594+
// Assert(curval == 0 ||
595+
// (curval == TRANSACTION_STATUS_SUB_COMMITTED &&
596+
// status != TRANSACTION_STATUS_IN_PROGRESS) ||
597+
// curval == status);
598598

599599
/* note this assumes exclusive access to the clog page */
600600
byteval = *byteptr;

0 commit comments

Comments
 (0)