mirror of
https://github.com/postgres/postgres.git
synced 2025-08-18 12:22:09 +03:00
Rename log_lock_failure GUC to log_lock_failures for consistency.
This commit renames the GUC log_lock_failure to log_lock_failures to align with the existing similar setting log_lock_waits, which uses the plural form. This improves naming consistency across related GUCs. Suggested-by: Peter Eisentraut <peter@eisentraut.org> Author: Fujii Masao <masao.fujii@gmail.com Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/7a8198b6-d5b8-4910-b41e-8d3efcbb015d@eisentraut.org
This commit is contained in:
@@ -4982,7 +4982,7 @@ l3:
|
||||
case LockWaitError:
|
||||
if (!ConditionalMultiXactIdWait((MultiXactId) xwait,
|
||||
status, infomask, relation,
|
||||
NULL, log_lock_failure))
|
||||
NULL, log_lock_failures))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
|
||||
errmsg("could not obtain lock on row in relation \"%s\"",
|
||||
@@ -5020,7 +5020,7 @@ l3:
|
||||
}
|
||||
break;
|
||||
case LockWaitError:
|
||||
if (!ConditionalXactLockTableWait(xwait, log_lock_failure))
|
||||
if (!ConditionalXactLockTableWait(xwait, log_lock_failures))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
|
||||
errmsg("could not obtain lock on row in relation \"%s\"",
|
||||
@@ -5285,7 +5285,7 @@ heap_acquire_tuplock(Relation relation, ItemPointer tid, LockTupleMode mode,
|
||||
break;
|
||||
|
||||
case LockWaitError:
|
||||
if (!ConditionalLockTupleTuplock(relation, tid, mode, log_lock_failure))
|
||||
if (!ConditionalLockTupleTuplock(relation, tid, mode, log_lock_failures))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
|
||||
errmsg("could not obtain lock on row in relation \"%s\"",
|
||||
|
@@ -464,7 +464,7 @@ tuple_lock_retry:
|
||||
return TM_WouldBlock;
|
||||
break;
|
||||
case LockWaitError:
|
||||
if (!ConditionalXactLockTableWait(SnapshotDirty.xmax, log_lock_failure))
|
||||
if (!ConditionalXactLockTableWait(SnapshotDirty.xmax, log_lock_failures))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_LOCK_NOT_AVAILABLE),
|
||||
errmsg("could not obtain lock on row in relation \"%s\"",
|
||||
|
Reference in New Issue
Block a user