diff options
Diffstat (limited to 'src/backend/utils/adt/xid8funcs.c')
-rw-r--r-- | src/backend/utils/adt/xid8funcs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/adt/xid8funcs.c b/src/backend/utils/adt/xid8funcs.c index 616f187ad42..c4401f4adf7 100644 --- a/src/backend/utils/adt/xid8funcs.c +++ b/src/backend/utils/adt/xid8funcs.c @@ -82,7 +82,7 @@ typedef struct * to the low 32 bits of the transaction ID (i.e. the actual XID, without the * epoch). * - * The caller must hold CLogTruncationLock since it's dealing with arbitrary + * The caller must hold XactTruncationLock since it's dealing with arbitrary * XIDs, and must continue to hold it until it's done with any clog lookups * relating to those XIDs. */ @@ -118,13 +118,13 @@ TransactionIdInRecentPast(FullTransactionId fxid, TransactionId *extracted_xid) U64FromFullTransactionId(fxid))))); /* - * ShmemVariableCache->oldestClogXid is protected by CLogTruncationLock, + * ShmemVariableCache->oldestClogXid is protected by XactTruncationLock, * but we don't acquire that lock here. Instead, we require the caller to * acquire it, because the caller is presumably going to look up the * returned XID. If we took and released the lock within this function, a * CLOG truncation could occur before the caller finished with the XID. */ - Assert(LWLockHeldByMe(CLogTruncationLock)); + Assert(LWLockHeldByMe(XactTruncationLock)); /* * If the transaction ID has wrapped around, it's definitely too old to @@ -672,7 +672,7 @@ pg_xact_status(PG_FUNCTION_ARGS) * We must protect against concurrent truncation of clog entries to avoid * an I/O error on SLRU lookup. */ - LWLockAcquire(CLogTruncationLock, LW_SHARED); + LWLockAcquire(XactTruncationLock, LW_SHARED); if (TransactionIdInRecentPast(fxid, &xid)) { Assert(TransactionIdIsValid(xid)); @@ -706,7 +706,7 @@ pg_xact_status(PG_FUNCTION_ARGS) { status = NULL; } - LWLockRelease(CLogTruncationLock); + LWLockRelease(XactTruncationLock); if (status == NULL) PG_RETURN_NULL(); |