aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-01-31 11:05:57 +0900
committerMichael Paquier <michael@paquier.xyz>2025-01-31 11:05:57 +0900
commit1e380fa7d82df8a1730b80a911f50952c711f2a8 (patch)
tree92821e1bbc79d488438bfdda119216b024570c9c /src
parentb9d232b9de89aa9282f9a2e7c85f783bcd334af2 (diff)
downloadpostgresql-1e380fa7d82df8a1730b80a911f50952c711f2a8.tar.gz
postgresql-1e380fa7d82df8a1730b80a911f50952c711f2a8.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
Diffstat (limited to 'src')
-rw-r--r--src/backend/storage/buffer/freelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c
index 1f757d96f07..336715b6c63 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