diff options
author | Michael Paquier <michael@paquier.xyz> | 2025-01-31 11:06:10 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2025-01-31 11:06:10 +0900 |
commit | 3f14a6d84db2f21b5d61855c1df1943f7e95222b (patch) | |
tree | db759a77792af7c91a07ca4d8b393664b770b2dd | |
parent | b296e55b4272494c54a7a65bec99d60200480051 (diff) | |
download | postgresql-3f14a6d84db2f21b5d61855c1df1943f7e95222b.tar.gz postgresql-3f14a6d84db2f21b5d61855c1df1943f7e95222b.zip |
Fix comment of StrategySyncStart()
The top comment of StrategySyncStart() mentions BufferSync(), but this
function calls BgBufferSync(), not BufferSync().
Oversight in 9cd00c457e6a.
Author: Ashutosh Bapat
Discussion: https://postgr.es/m/CAExHW5tgkjag8i-s=RFrCn5KAWDrC4zEPPkfUKczfccPOxBRQQ@mail.gmail.com
Backpatch-through: 13
-rw-r--r-- | src/backend/storage/buffer/freelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c index 990e081aaec..f227801ddd5 100644 --- a/src/backend/storage/buffer/freelist.c +++ b/src/backend/storage/buffer/freelist.c @@ -380,10 +380,10 @@ StrategyFreeBuffer(BufferDesc *buf) } /* - * StrategySyncStart -- tell BufferSync where to start syncing + * StrategySyncStart -- tell BgBufferSync where to start syncing * * The result is the buffer index of the best buffer to sync first. - * BufferSync() will proceed circularly around the buffer array from there. + * BgBufferSync() will proceed circularly around the buffer array from there. * * In addition, we return the completed-pass count (which is effectively * the higher-order bits of nextVictimBuffer) and the count of recent buffer |