Fix comment.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 10 May 2022 05:20:26 +0000 (14:20 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 10 May 2022 05:21:15 +0000 (14:21 +0900)
src/query_cache/pool_memqcache.c

index 3ba2df8dcc8b818a7f241eef63283bab35ff0064..42fe860075a97c4bad4448b7b53166ab21164aa0 100644 (file)
@@ -3,7 +3,7 @@
  * pgpool: a language independent connection pool server for PostgreSQL
  * written by Tatsuo Ishii
  *
- * Copyright (c) 2003-2020     PgPool Global Development Group
+ * Copyright (c) 2003-2022     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -2225,6 +2225,10 @@ pool_reset_fsmm(size_t size)
 /*
  * Find victim block using clock algorithm and make it free.
  * Returns new free block id.
+ * XXX actually this is not a clock algorithm because it does not have "reference" bit.
+ * It's like a simple FIFO.
+ * See https://en.wikipedia.org/wiki/Page_replacement_algorithm#Clock for more details.
+ * It would be nice if we could use true clock algorithm someday.
  */
 static POOL_CACHE_BLOCKID pool_reuse_block(void)
 {