@@ -33,7 +33,7 @@ typedef struct
3333 slock_t buffer_strategy_lock ;
3434
3535 /*
36- * Clock sweep hand: index of next buffer to consider grabbing. Note that
36+ * clock- sweep hand: index of next buffer to consider grabbing. Note that
3737 * this isn't a concrete buffer - we only ever increase the value. So, to
3838 * get an actual buffer, it needs to be used modulo NBuffers.
3939 */
@@ -51,7 +51,7 @@ typedef struct
5151 * Statistics. These counters should be wide enough that they can't
5252 * overflow during a single bgwriter cycle.
5353 */
54- uint32 completePasses ; /* Complete cycles of the clock sweep */
54+ uint32 completePasses ; /* Complete cycles of the clock- sweep */
5555 pg_atomic_uint32 numBufferAllocs ; /* Buffers allocated since last reset */
5656
5757 /*
@@ -311,7 +311,7 @@ StrategyGetBuffer(BufferAccessStrategy strategy, uint32 *buf_state, bool *from_r
311311 }
312312 }
313313
314- /* Nothing on the freelist, so run the "clock sweep" algorithm */
314+ /* Nothing on the freelist, so run the "clock- sweep" algorithm */
315315 trycounter = NBuffers ;
316316 for (;;)
317317 {
@@ -511,7 +511,7 @@ StrategyInitialize(bool init)
511511 StrategyControl -> firstFreeBuffer = 0 ;
512512 StrategyControl -> lastFreeBuffer = NBuffers - 1 ;
513513
514- /* Initialize the clock sweep pointer */
514+ /* Initialize the clock- sweep pointer */
515515 pg_atomic_init_u32 (& StrategyControl -> nextVictimBuffer , 0 );
516516
517517 /* Clear statistics */
@@ -759,7 +759,7 @@ GetBufferFromRing(BufferAccessStrategy strategy, uint32 *buf_state)
759759 *
760760 * If usage_count is 0 or 1 then the buffer is fair game (we expect 1,
761761 * since our own previous usage of the ring element would have left it
762- * there, but it might've been decremented by clock sweep since then). A
762+ * there, but it might've been decremented by clock- sweep since then). A
763763 * higher usage_count indicates someone else has touched the buffer, so we
764764 * shouldn't re-use it.
765765 */
0 commit comments