mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Fix a typo, and remove unnecessary pgstat_report_wait_end().
Per Amit Kapila.
This commit is contained in:
parent
38c83c9b75
commit
481c76abf4
@ -4655,9 +4655,6 @@ AbortSubTransaction(void)
|
|||||||
*/
|
*/
|
||||||
XactReadOnly = s->prevXactReadOnly;
|
XactReadOnly = s->prevXactReadOnly;
|
||||||
|
|
||||||
/* Report wait end here, when there is no further possibility of wait */
|
|
||||||
pgstat_report_wait_end();
|
|
||||||
|
|
||||||
RESUME_INTERRUPTS();
|
RESUME_INTERRUPTS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -760,9 +760,8 @@ GetLWLockIdentifier(uint8 classId, uint16 eventId)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* It is quite possible that user has registered tranche in one of the
|
* It is quite possible that user has registered tranche in one of the
|
||||||
* backends (e.g. by allocation lwlocks in dynamic shared memory) but not
|
* backends (e.g. by allocating lwlocks in dynamic shared memory) but
|
||||||
* all of them, so we can't assume the tranche is registered here.
|
* not all of them, so we can't assume the tranche is registered here.
|
||||||
* extension for such cases.
|
|
||||||
*/
|
*/
|
||||||
if (eventId >= LWLockTranchesAllocated ||
|
if (eventId >= LWLockTranchesAllocated ||
|
||||||
LWLockTrancheArray[eventId]->name == NULL)
|
LWLockTrancheArray[eventId]->name == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user