1
0
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:
Heikki Linnakangas
2012-02-08 09:17:13 +02:00
parent af7dd696b0
commit 1a01560cbb
3 changed files with 8 additions and 8 deletions

View File

@ -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