Remove bogus tracepoint
authorPeter Eisentraut <[email protected]>
Fri, 22 Jan 2021 10:58:21 +0000 (11:58 +0100)
committerPeter Eisentraut <[email protected]>
Fri, 22 Jan 2021 10:58:21 +0000 (11:58 +0100)
Calls to LWLockWaitForVar() fired the TRACE_POSTGRESQL_LWLOCK_ACQUIRE
tracepoint, but LWLockWaitForVar() never actually acquires the LWLock.
(Probably a copy/paste bug in 68a2e52bbaf.)  Remove it.

Author: Craig Ringer <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/CAGRY4nxJo+-HCC2i5H93ttSZ4gZO-FSddCwvkb-qAfQ1zdXd1w@mail.gmail.com

src/backend/storage/lmgr/lwlock.c

index db7e59f8b70b6b5e4abdcbdc9515d6afeb892ac2..8cb6a6f042ad80753a83854e98e12f8ab80a2e4d 100644 (file)
@@ -1725,8 +1725,6 @@ LWLockWaitForVar(LWLock *lock, uint64 *valptr, uint64 oldval, uint64 *newval)
        /* Now loop back and check the status of the lock again. */
    }
 
-   TRACE_POSTGRESQL_LWLOCK_ACQUIRE(T_NAME(lock), LW_EXCLUSIVE);
-
    /*
     * Fix the process wait semaphore's count for any absorbed wakeups.
     */