aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-10-21 11:25:29 +0900
committerMichael Paquier <michael@paquier.xyz>2024-10-21 11:25:29 +0900
commit57a36e890d3d60e6408bf6805e91c82f7b370873 (patch)
tree7180126ccd1325437e10a0c3bd5dbcd6126dad47
parenta7800cf498a36456bf4bd7a52e3b81cc225c5a65 (diff)
downloadpostgresql-57a36e890d3d60e6408bf6805e91c82f7b370873.tar.gz
postgresql-57a36e890d3d60e6408bf6805e91c82f7b370873.zip
Fix grammar of a comment in bufmgr.c
Author: Junwang Zhao Discussion: https://postgr.es/m/CAEG8a3L5YjxXCjx0LhkwHdDGsNgpFGEqH7SqtXRPNP+dwFMVZQ@mail.gmail.com
-rw-r--r--src/backend/storage/buffer/bufmgr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index a19595865af..0f02bf62fa3 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -1495,11 +1495,11 @@ WaitReadBuffers(ReadBuffersOperation *operation)
io_buffers_len = 1;
/*
- * How many neighboring-on-disk blocks can we can scatter-read into
- * other buffers at the same time? In this case we don't wait if we
- * see an I/O already in progress. We already hold BM_IO_IN_PROGRESS
- * for the head block, so we should get on with that I/O as soon as
- * possible. We'll come back to this block again, above.
+ * How many neighboring-on-disk blocks can we scatter-read into other
+ * buffers at the same time? In this case we don't wait if we see an
+ * I/O already in progress. We already hold BM_IO_IN_PROGRESS for the
+ * head block, so we should get on with that I/O as soon as possible.
+ * We'll come back to this block again, above.
*/
while ((i + 1) < nblocks &&
WaitReadBuffersCanStartIO(buffers[i + 1], true))