diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-07-01 10:00:23 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-07-01 10:00:23 +0900 |
commit | c74d49d41c9e0fabeb1179dcabfb3137833ed831 (patch) | |
tree | d5406f4f6578181174e178c68ba320ac9395648a /src/backend/storage | |
parent | 459c3cdb4ad8323bfe6bcae0186a3831e0c89c94 (diff) | |
download | postgresql-c74d49d41c9e0fabeb1179dcabfb3137833ed831.tar.gz postgresql-c74d49d41c9e0fabeb1179dcabfb3137833ed831.zip |
Fix many typos and inconsistencies
Author: Alexander Lakhin
Discussion: https://postgr.es/m/af27d1b3-a128-9d62-46e0-88f424397f44@gmail.com
Diffstat (limited to 'src/backend/storage')
-rw-r--r-- | src/backend/storage/buffer/freelist.c | 2 | ||||
-rw-r--r-- | src/backend/storage/buffer/localbuf.c | 2 | ||||
-rw-r--r-- | src/backend/storage/ipc/barrier.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c index 06659ab2653..c8d4e6f9e42 100644 --- a/src/backend/storage/buffer/freelist.c +++ b/src/backend/storage/buffer/freelist.c @@ -220,7 +220,7 @@ StrategyGetBuffer(BufferAccessStrategy strategy, uint32 *buf_state) * If asked, we need to waken the bgwriter. Since we don't want to rely on * a spinlock for this we force a read from shared memory once, and then * set the latch based on that value. We need to go through that length - * because otherwise bgprocno might be reset while/after we check because + * because otherwise bgwprocno might be reset while/after we check because * the compiler might just reread from memory. * * This can possibly set the latch of the wrong process if the bgwriter diff --git a/src/backend/storage/buffer/localbuf.c b/src/backend/storage/buffer/localbuf.c index c462ea82a92..391b6d6e16f 100644 --- a/src/backend/storage/buffer/localbuf.c +++ b/src/backend/storage/buffer/localbuf.c @@ -537,7 +537,7 @@ GetLocalBufferStorage(void) /* * CheckForLocalBufferLeaks - ensure this backend holds no local buffer pins * - * This is just like CheckBufferLeaks(), but for local buffers. + * This is just like CheckForBufferLeaks(), but for local buffers. */ static void CheckForLocalBufferLeaks(void) diff --git a/src/backend/storage/ipc/barrier.c b/src/backend/storage/ipc/barrier.c index 69ed034e528..83cbe33107c 100644 --- a/src/backend/storage/ipc/barrier.c +++ b/src/backend/storage/ipc/barrier.c @@ -226,9 +226,9 @@ BarrierAttach(Barrier *barrier) } /* - * Detach from a barrier. This may release other waiters from BarrierWait and - * advance the phase if they were only waiting for this backend. Return true - * if this participant was the last to detach. + * Detach from a barrier. This may release other waiters from + * BarrierArriveAndWait() and advance the phase if they were only waiting for + * this backend. Return true if this participant was the last to detach. */ bool BarrierDetach(Barrier *barrier) |