From 27a8e3b04e645e0c614c597668355e9bc945c408 Mon Sep 17 00:00:00 2001 From: Jeff Liu Date: Tue, 26 Dec 2023 11:30:05 +0800 Subject: [PATCH] fix missing comments (#12878) add a missing comment for `dont_compress` and fix the bits calculation --- src/quicklist.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/quicklist.h b/src/quicklist.h index f17834b99..3d33634f5 100644 --- a/src/quicklist.h +++ b/src/quicklist.h @@ -42,7 +42,8 @@ * container: 2 bits, PLAIN=1 (a single item as char array), PACKED=2 (listpack with multiple items). * recompress: 1 bit, bool, true if node is temporary decompressed for usage. * attempted_compress: 1 bit, boolean, used for verifying during testing. - * extra: 10 bits, free for future use; pads out the remainder of 32 bits */ + * dont_compress: 1 bit, boolean, used for preventing compression of entry. + * extra: 9 bits, free for future use; pads out the remainder of 32 bits */ typedef struct quicklistNode { struct quicklistNode *prev; struct quicklistNode *next;