diff options
author | Noah Misch <noah@leadboat.com> | 2016-04-01 21:53:10 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2016-04-01 21:53:10 -0400 |
commit | 4ad6f13500cd9a3ca0652e43232f9515319e55e2 (patch) | |
tree | a61b2e89bff781ca7831ab1dc3613478993d7478 /src/backend/storage/buffer/bufmgr.c | |
parent | f07d18b6e94da6ef93dc4e00096f1e7542814fdb (diff) | |
download | postgresql-4ad6f13500cd9a3ca0652e43232f9515319e55e2.tar.gz postgresql-4ad6f13500cd9a3ca0652e43232f9515319e55e2.zip |
Copyedit comments and documentation.
Diffstat (limited to 'src/backend/storage/buffer/bufmgr.c')
-rw-r--r-- | src/backend/storage/buffer/bufmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 6dd7c6ecb67..42aa2f9df9b 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -921,7 +921,7 @@ ReadBuffer_common(SMgrRelation smgr, char relpersistence, ForkNumber forkNum, * * Since no-one else can be looking at the page contents yet, there is no * difference between an exclusive lock and a cleanup-strength lock. (Note - * that we cannot use LockBuffer() of LockBufferForCleanup() here, because + * that we cannot use LockBuffer() or LockBufferForCleanup() here, because * they assert that the buffer is already valid.) */ if ((mode == RBM_ZERO_AND_LOCK || mode == RBM_ZERO_AND_CLEANUP_LOCK) && @@ -1882,7 +1882,7 @@ BufferSync(int flags) * and clears the flag right after we check, but that doesn't matter * since SyncOneBuffer will then do nothing. However, there is a * further race condition: it's conceivable that between the time we - * examine the bit here and the time SyncOneBuffer acquires lock, + * examine the bit here and the time SyncOneBuffer acquires the lock, * someone else not only wrote the buffer but replaced it with another * page and dirtied it. In that improbable case, SyncOneBuffer will * write the buffer though we didn't need to. It doesn't seem worth |