From 21c1b5c6432c04ed463d82119bd9c0a3797f1e25 Mon Sep 17 00:00:00 2001 From: haowen <19355821+wenhaocs@users.noreply.github.com> Date: Fri, 24 Sep 2021 09:53:32 -0700 Subject: [PATCH] Fix forward compatibility issue when compiling with master rocksdb (#2920) --- src/kvstore/EventListener.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kvstore/EventListener.h b/src/kvstore/EventListener.h index 2f63b8137ca..f10363552a3 100644 --- a/src/kvstore/EventListener.h +++ b/src/kvstore/EventListener.h @@ -210,8 +210,9 @@ class EventListener : public rocksdb::EventListener { return "PeriodicCompaction"; case rocksdb::CompactionReason::kNumOfReasons: return "NumOfReasons"; + default: + return "Unknown"; } - return "Unknown"; } std::string flushReasonString(const rocksdb::FlushReason& reason) {