Content-Length: 266137 | pFad | http://github.com/postgrespro/postgres/commit/1e380fa7d82df8a1730b80a911f50952c711f2a8

E7 Fix comment of StrategySyncStart() · postgrespro/postgres@1e380fa · GitHub
Skip to content

Commit 1e380fa

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 b9d232b commit 1e380fa

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
@@ -380,10 +380,10 @@ StrategyFreeBuffer(BufferDesc *buf)
380380
}
381381

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

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1e380fa7d82df8a1730b80a911f50952c711f2a8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy