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

Commitaeecdac

Browse files
committed
Uncomment assert
1 parent1c1434b commitaeecdac

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎src/backend/access/transam/clog.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,10 @@ TransactionIdSetStatusBit(TransactionId xid, XidStatus status, XLogRecPtr lsn, i
352352
* Current state change should be from 0 or subcommitted to target state
353353
* or we should already be there when replaying changes during recovery.
354354
*/
355-
/*Assert(curval == 0 || */
356-
/* (curval == TRANSACTION_STATUS_SUB_COMMITTED && */
357-
/*status != TRANSACTION_STATUS_IN_PROGRESS) || */
358-
/* curval == status); */
355+
Assert(curval==0||
356+
(curval==TRANSACTION_STATUS_SUB_COMMITTED&&
357+
status!=TRANSACTION_STATUS_IN_PROGRESS)||
358+
curval==status);
359359

360360
/* note this assumes exclusive access to the clog page */
361361
byteval=*byteptr;

‎src/backend/access/transam/xact.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,9 +1543,9 @@ RecordTransactionAbort(bool isSubXact)
15431543
/*
15441544
* Check that we haven't aborted halfway through RecordTransactionCommit.
15451545
*/
1546-
/*if (TransactionIdDidCommit(xid)) */
1547-
/*elog(PANIC, "cannot abort transaction %u, it was already committed", */
1548-
/* xid); */
1546+
if (TransactionIdDidCommit(xid))
1547+
elog(PANIC,"cannot abort transaction %u, it was already committed",
1548+
xid);
15491549

15501550
/* Fetch the data we need for the abort record */
15511551
nrels=smgrGetPendingDeletes(false,&rels);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp