We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5485c5 commit 6dbb59fCopy full SHA for 6dbb59f
include/pika_conf.h
@@ -754,7 +754,7 @@ class PikaConf : public pstd::BaseConf {
754
}
755
756
bool UpdateCacheValueItemMaxSize(int size) {
757
- if (size >= MAX_CACHE_ITEMS_SIZE || size <= 0) {
+ if (size > MAX_CACHE_ITEMS_SIZE || size <= 0) {
758
return false;
759
760
cache_value_item_max_size_.store(size);
@@ -766,7 +766,7 @@ class PikaConf : public pstd::BaseConf {
766
767
768
bool UpdateMaxKeySizeInCache(size_t size) {
769
- if (size >= MAX_CACHE_MAX_KEY_SIZE || size <= 0) {
+ if (size > MAX_CACHE_MAX_KEY_SIZE || size <= 0) {
770
771
772
max_key_size_in_cache_.store(size);
0 commit comments