Skip to content

Commit 5b43d23

Browse files
Mixficsolwuxianrong
andauthored
fix correction maximum ranges (#3065)
Co-authored-by: wuxianrong <[email protected]>
1 parent c195c0f commit 5b43d23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/pika_conf.h

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

870870
bool UpdateCacheValueItemMaxSize(int size) {
871-
if (size >= MAX_CACHE_ITEMS_SIZE || size <= 0) {
871+
if (size > MAX_CACHE_ITEMS_SIZE || size <= 0) {
872872
return false;
873873
}
874874
cache_value_item_max_size_.store(size);
@@ -880,7 +880,7 @@ class PikaConf : public pstd::BaseConf {
880880
}
881881

882882
bool UpdateMaxKeySizeInCache(size_t size) {
883-
if (size >= MAX_CACHE_MAX_KEY_SIZE || size <= 0) {
883+
if (size > MAX_CACHE_MAX_KEY_SIZE || size <= 0) {
884884
return false;
885885
}
886886
max_key_size_in_cache_.store(size);

0 commit comments

Comments
 (0)