Fix comment.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 7 Jan 2023 04:27:34 +0000 (13:27 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 7 Jan 2023 04:27:34 +0000 (13:27 +0900)
sizeof(POOL_CACHE_ITEM_HEADER) is 16 bytes, not 24 bytes.

src/include/query_cache/pool_memqcache.h

index d40161eeacfc1cb24896abb5be2d1866bab0d0ca..498851e4710bfa9fa9219089524852e5c98b5581 100644 (file)
@@ -91,7 +91,7 @@ typedef struct
 
 /*
  * Each block holds several "cache item", which consists of variable
- * length of Data(header plus RowDescription packet and DataRow
+ * length of Data (header plus RowDescription packet and DataRow
  * packet).  Each cache item is assigned "cache item id", which
  * represents the cache item order in a block.
  */
@@ -104,13 +104,13 @@ typedef struct
 
 /*
  * "Cache Item header" structure is used to manage each cache item.
- *  (24 bytes)
+ *  (16 bytes)
  */
 typedef struct
 {
        unsigned int total_length;      /* total length in bytes including myself */
        time_t          timestamp;              /* cache creation time */
-       int                     expire;                 /* cache expire */
+       int                     expire;                 /* cache expire duration in seconds */
 }                      POOL_CACHE_ITEM_HEADER;
 
 typedef struct