Commit 481c76ab authored by Robert Haas's avatar Robert Haas

Fix a typo, and remove unnecessary pgstat_report_wait_end().

Per Amit Kapila.
parent 38c83c9b
...@@ -4655,9 +4655,6 @@ AbortSubTransaction(void) ...@@ -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) ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment