This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new e6d0dcf3 Fix compiler warning in stats/db_stats (#1035)
e6d0dcf3 is described below

commit e6d0dcf3eb4ce05273754bced42b0e12995e5270
Author: Twice <[email protected]>
AuthorDate: Mon Oct 24 18:10:53 2022 +0800

    Fix compiler warning in stats/db_stats (#1035)
---
 src/stats/disk_stats.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stats/disk_stats.cc b/src/stats/disk_stats.cc
index d0e87c68..3350a942 100644
--- a/src/stats/disk_stats.cc
+++ b/src/stats/disk_stats.cc
@@ -71,7 +71,7 @@ rocksdb::Status Disk::GetKeySize(const Slice &user_key, 
RedisType type, uint64_t
       return GetZsetSize(ns_key, key_size);
     case RedisType::kRedisStream:
       return GetStreamSize(ns_key, key_size);
-    case RedisType::kRedisNone:
+    default:
       return rocksdb::Status::NotFound("Not found ", user_key);
   }
 }

Reply via email to