Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 481c76a

Browse files
committed
Fix a typo, and remove unnecessary pgstat_report_wait_end().
Per Amit Kapila.
1 parent 38c83c9 commit 481c76a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/backend/access/transam/xact.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4655,9 +4655,6 @@ AbortSubTransaction(void)
46554655
*/
46564656
XactReadOnly = s->prevXactReadOnly;
46574657

4658-
/* Report wait end here, when there is no further possibility of wait */
4659-
pgstat_report_wait_end();
4660-
46614658
RESUME_INTERRUPTS();
46624659
}
46634660

src/backend/storage/lmgr/lwlock.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,8 @@ GetLWLockIdentifier(uint8 classId, uint16 eventId)
760760

761761
/*
762762
* It is quite possible that user has registered tranche in one of the
763-
* backends (e.g. by allocation lwlocks in dynamic shared memory) but not
764-
* all of them, so we can't assume the tranche is registered here.
765-
* extension for such cases.
763+
* backends (e.g. by allocating lwlocks in dynamic shared memory) but
764+
* not all of them, so we can't assume the tranche is registered here.
766765
*/
767766
if (eventId >= LWLockTranchesAllocated ||
768767
LWLockTrancheArray[eventId]->name == NULL)

0 commit comments

Comments
 (0)