Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71832a1

Browse files
committed
Fix comment of StrategySyncStart()
The top comment of StrategySyncStart() mentions BufferSync(), but this function calls BgBufferSync(), not BufferSync(). Oversight in 9cd00c4. Author: Ashutosh Bapat Discussion: https://postgr.es/m/CAExHW5tgkjag8i-s=RFrCn5KAWDrC4zEPPkfUKczfccPOxBRQQ@mail.gmail.com Backpatch-through: 13
1 parent 6a33bb3 commit 71832a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/storage/buffer/freelist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,10 @@ StrategyFreeBuffer(BufferDesc *buf)
381381
}
382382

383383
/*
384-
* StrategySyncStart -- tell BufferSync where to start syncing
384+
* StrategySyncStart -- tell BgBufferSync where to start syncing
385385
*
386386
* The result is the buffer index of the best buffer to sync first.
387-
* BufferSync() will proceed circularly around the buffer array from there.
387+
* BgBufferSync() will proceed circularly around the buffer array from there.
388388
*
389389
* In addition, we return the completed-pass count (which is effectively
390390
* the higher-order bits of nextVictimBuffer) and the count of recent buffer

0 commit comments

Comments
 (0)