-
Type: Technical Debt
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Storage Engines
-
2
-
2024-01-09 - I Grew Tired
Two warnings related to the block chunk cache from Clang analyzer:
[2023/12/14 16:59:53.069] > [0m1 warning generated. [2023/12/14 16:59:53.069] > [1m/data/mci/1aa3ceb4c1a38ff2bb3527414e756799/wiredtiger/src/block_cache/block_chunkcache.c:238:5: [0m[0;1;35mwarning: [0m[1mValue stored to 'found' is never read[0m [2023/12/14 16:59:53.069] > found = false; [2023/12/14 16:59:53.069] > [0;1;32m ^ ~~~~~ [2023/12/14 16:59:53.069] > [0m[1m/data/mci/1aa3ceb4c1a38ff2bb3527414e756799/wiredtiger/src/block_cache/block_chunkcache.c:1078:10: [0m[0;1;35mwarning: [0m[1mAlthough the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'[0m [2023/12/14 16:59:53.069] > if ((ret = __wt_config_gets(session, cfg + 1, "chunk_cache", &cval)) == WT_NOTFOUND) [2023/12/14 16:59:53.069] > [0;1;32m ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [2023/12/14 16:59:53.069] > [0m[1m/data/mci/1aa3ceb4c1a38ff2bb3527414e756799/wiredtiger/src/block_cache/block_chunkcache.c:1177:9: [0m[0;1;35mwarning: [0m[1mThe left operand of '!=' is a garbage value[0m [2023/12/14 16:59:53.069] > __wt_free(session, newchunk); [2023/12/14 16:59:53.069] > [0;1;32m ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [2023/12/14 16:59:53.069] > [0m[1m/data/mci/1aa3ceb4c1a38ff2bb3527414e756799/wiredtiger/src/include/misc.h:144:27: [0m[0;1;30mnote: [0mexpanded from macro '__wt_free'[0m [2023/12/14 16:59:53.069] > if (*(void **)__p != NULL) \