]> granicus.if.org Git - postgresql/blobdiff - src/backend/storage/lmgr/lwlock.c
Make init_spin_delay() C89 compliant and change stuck spinlock reporting.
[postgresql] / src / backend / storage / lmgr / lwlock.c
index bb8b8bb29f621712e8cd04b70c72d6903d48b8b1..ddb653a06d795e708d335f1ae2adc56602d4d436 100644 (file)
@@ -870,7 +870,7 @@ LWLockWaitListLock(LWLock *lock)
 
                /* and then spin without atomic operations until lock is released */
                {
-                       SpinDelayStatus delayStatus = init_spin_delay(&lock->state);
+                       SpinDelayStatus delayStatus = init_local_spin_delay();
 
                        while (old_state & LW_FLAG_LOCKED)
                        {