We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c195c0f commit 5b43d23Copy full SHA for 5b43d23
1 file changed
include/pika_conf.h
@@ -868,7 +868,7 @@ class PikaConf : public pstd::BaseConf {
868
}
869
870
bool UpdateCacheValueItemMaxSize(int size) {
871
- if (size >= MAX_CACHE_ITEMS_SIZE || size <= 0) {
+ if (size > MAX_CACHE_ITEMS_SIZE || size <= 0) {
872
return false;
873
874
cache_value_item_max_size_.store(size);
@@ -880,7 +880,7 @@ class PikaConf : public pstd::BaseConf {
880
881
882
bool UpdateMaxKeySizeInCache(size_t size) {
883
- if (size >= MAX_CACHE_MAX_KEY_SIZE || size <= 0) {
+ if (size > MAX_CACHE_MAX_KEY_SIZE || size <= 0) {
884
885
886
max_key_size_in_cache_.store(size);
0 commit comments