mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Rename LWLockWaitUntilFree to LWLockAcquireOrWait.
LWLockAcquireOrWait makes it more clear that the lock is acquired if it's free.
This commit is contained in:
@ -2145,7 +2145,7 @@ XLogFlush(XLogRecPtr record)
|
||||
* helps to maintain a good rate of group committing when the system
|
||||
* is bottlenecked by the speed of fsyncing.
|
||||
*/
|
||||
if (!LWLockWaitUntilFree(WALWriteLock, LW_EXCLUSIVE))
|
||||
if (!LWLockAcquireOrWait(WALWriteLock, LW_EXCLUSIVE))
|
||||
{
|
||||
/*
|
||||
* The lock is now free, but we didn't acquire it yet. Before we
|
||||
|
Reference in New Issue
Block a user