From ec7bf4b55c01b76c33012824e2e16893e8deccf6 Mon Sep 17 00:00:00 2001 From: Croxx Date: Wed, 27 Dec 2023 16:26:27 +0800 Subject: [PATCH] chore: fix building warning without test (#14230) Signed-off-by: MrCroxx --- src/storage/src/hummock/store/hummock_storage.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storage/src/hummock/store/hummock_storage.rs b/src/storage/src/hummock/store/hummock_storage.rs index 3f1f34016d43..3182b321a373 100644 --- a/src/storage/src/hummock/store/hummock_storage.rs +++ b/src/storage/src/hummock/store/hummock_storage.rs @@ -27,7 +27,6 @@ use risingwave_common::util::epoch::is_max_epoch; use risingwave_common_service::observer_manager::{NotificationClient, ObserverManager}; use risingwave_hummock_sdk::key::{is_empty_key_range, TableKey, TableKeyRange}; use risingwave_hummock_sdk::table_watermark::ReadTableWatermark; -use risingwave_hummock_sdk::version::HummockVersion; use risingwave_hummock_sdk::HummockReadEpoch; use risingwave_pb::hummock::SstableInfo; use risingwave_rpc_client::HummockMetaClient; @@ -530,6 +529,9 @@ impl StateStore for HummockStorage { } } +#[cfg(any(test, feature = "test"))] +use risingwave_hummock_sdk::version::HummockVersion; + #[cfg(any(test, feature = "test"))] impl HummockStorage { pub async fn seal_and_sync_epoch(&self, epoch: u64) -> StorageResult {