Skip to content

Commit 6dbb59f

Browse files
Mixficsolwuxianrong
andauthored
correction maximum range (#3064)
Co-authored-by: wuxianrong <[email protected]>
1 parent a5485c5 commit 6dbb59f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pika_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ class PikaConf : public pstd::BaseConf {
754754
}
755755

756756
bool UpdateCacheValueItemMaxSize(int size) {
757-
if (size >= MAX_CACHE_ITEMS_SIZE || size <= 0) {
757+
if (size > MAX_CACHE_ITEMS_SIZE || size <= 0) {
758758
return false;
759759
}
760760
cache_value_item_max_size_.store(size);
@@ -766,7 +766,7 @@ class PikaConf : public pstd::BaseConf {
766766
}
767767

768768
bool UpdateMaxKeySizeInCache(size_t size) {
769-
if (size >= MAX_CACHE_MAX_KEY_SIZE || size <= 0) {
769+
if (size > MAX_CACHE_MAX_KEY_SIZE || size <= 0) {
770770
return false;
771771
}
772772
max_key_size_in_cache_.store(size);

0 commit comments

Comments
 (0)