Skip to content

Commit bc72424

Browse files
authored
fix: some bugs for v4.0.2 (#3223)
* fix: ttl error for hlen update cache
1 parent 4484840 commit bc72424

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,9 +790,7 @@ message("pika GIT_DATE = ${PIKA_GIT_DATE}")
790790
message("pika GIT_TAG = ${PIKA_GIT_TAG}")
791791
message("pika BUILD_DATE = ${PIKA_BUILD_DATE}")
792792

793-
set(PIKA_BUILD_VERSION_CC ${CMAKE_BINARY_DIR}/pika_build_version.cc
794-
src/pika_cache_load_thread.cc
795-
)
793+
set(PIKA_BUILD_VERSION_CC ${CMAKE_BINARY_DIR}/pika_build_version.cc)
796794
message("PIKA_BUILD_VERSION_CC : " ${PIKA_BUILD_VERSION_CC})
797795
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/build_version.cc.in ${PIKA_BUILD_VERSION_CC} @ONLY)
798796

src/pika_conf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ int PikaConf::Load() {
451451
rate_limiter_auto_tuned_ = at == "yes" || at.empty();
452452
// if rate limiter autotune enable, `rate_limiter_bandwidth_` will still be respected as an upper-bound.
453453
if (rate_limiter_auto_tuned_) {
454-
rate_limiter_bandwidth_ = 10 * 1024 * 1024 * 1024; // 10GB/s
454+
rate_limiter_bandwidth_ = 10LL * 1024 * 1024 * 1024; // 10GB/s
455455
}
456456

457457
// max_write_buffer_num

src/storage/include/storage/storage_define.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ inline char* EncodeUserKey(const Slice& user_key, char* dst_ptr, size_t nzero) {
7878
}
7979
if (pos != user_key.size()) {
8080
memcpy(dst_ptr, user_data + pos, user_key.size() - pos);
81+
dst_ptr += user_key.size() - pos;
8182
}
8283

8384
memcpy(dst_ptr, kEncodedKeyDelim, 2);

0 commit comments

Comments
 (0)