diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-02-08 09:17:13 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-02-08 09:17:13 +0200 |
commit | 1a01560cbb78ff363fc7d70298328aa23f05bfb5 (patch) | |
tree | f74db4bd18417c3371e25c41f16e06787ddaf8e0 /src/backend/access/transam/xlog.c | |
parent | af7dd696b00fe666fec3642e103acafe33002765 (diff) | |
download | postgresql-1a01560cbb78ff363fc7d70298328aa23f05bfb5.tar.gz postgresql-1a01560cbb78ff363fc7d70298328aa23f05bfb5.zip |
Rename LWLockWaitUntilFree to LWLockAcquireOrWait.
LWLockAcquireOrWait makes it more clear that the lock is acquired if it's
free.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 5e59c1ab196..266c0decaca 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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 |