diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-12-03 10:27:29 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-12-03 10:27:29 +0000 |
commit | 65b362fae15aba68d5cd7d4204b8224c3e1c2c07 (patch) | |
tree | a601515ed9642733b646cb5a9f0a8f0671494c50 /src/backend/access/transam/xact.c | |
parent | 5e3bc5ebcddf00ba33d1483bab2a5a2d62c65120 (diff) |
Disable elog(ERROR|FATAL) in signal handlers in
critical sections of code.
Diffstat (limited to 'src/backend/access/transam/xact.c')
-rw-r--r-- | src/backend/access/transam/xact.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index b9ba82b63bc..129c0e263a5 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.86 2000/11/30 08:46:22 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.87 2000/12/03 10:27:26 vadim Exp $ * * NOTES * Transaction aborts can now occur two ways: @@ -672,6 +672,7 @@ RecordTransactionCommit() BufmgrCommit(); xlrec.xtime = time(NULL); + START_CRIT_CODE; /* * SHOULD SAVE ARRAY OF RELFILENODE-s TO DROP */ @@ -691,6 +692,7 @@ RecordTransactionCommit() TransactionIdCommit(xid); MyProc->logRec.xrecoff = 0; + END_CRIT_CODE; } if (leak) @@ -787,11 +789,13 @@ RecordTransactionAbort(void) XLogRecPtr recptr; xlrec.xtime = time(NULL); + START_CRIT_CODE; recptr = XLogInsert(RM_XACT_ID, XLOG_XACT_ABORT, (char*) &xlrec, SizeOfXactAbort, NULL, 0); TransactionIdAbort(xid); MyProc->logRec.xrecoff = 0; + END_CRIT_CODE; } /* |