Fix comment of StrategySyncStart()
authorMichael Paquier <michael@paquier.xyz>
Fri, 31 Jan 2025 02:06:07 +0000 (11:06 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 31 Jan 2025 02:06:07 +0000 (11:06 +0900)
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

src/backend/storage/buffer/freelist.c

index 19797de31a9c82c5d0bebd9919c93f62b6e39145..13bf87c74cab7889b03fb8104dfb198b26b4a875 100644 (file)
@@ -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