Skip to content

Commit

Permalink
fix(ci): fix unused import in release build (risingwavelabs#6612)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 authored Nov 28, 2022
1 parent 8a06eb1 commit a198200
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/storage/src/hummock/sstable/delete_range_aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ impl DeleteRangeAggregatorBuilder {
}
}

#[cfg(debug_assertions)]
fn check_sorted_tombstone(sorted_tombstones: &[DeleteRangeTombstone]) {
for idx in 1..sorted_tombstones.len() {
assert!(sorted_tombstones[idx]
Expand Down
8 changes: 5 additions & 3 deletions src/storage/src/store_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ use std::sync::Arc;

use enum_as_inner::EnumAsInner;
use risingwave_common::config::StorageConfig;
use risingwave_common::util::env_var::env_var_is_true;
use risingwave_common_service::observer_manager::RpcNotificationClient;
use risingwave_hummock_sdk::filter_key_extractor::FilterKeyExtractorManagerRef;
use risingwave_object_store::object::{
parse_local_object_store, parse_remote_object_store, ObjectStoreImpl,
};
use tracing::info;

use crate::error::StorageResult;
use crate::hummock::hummock_meta_client::MonitoredHummockMetaClient;
Expand All @@ -35,7 +33,6 @@ use crate::hummock::{
use crate::memory::sled::SledStateStore;
use crate::memory::MemoryStateStore;
use crate::monitor::{MonitoredStateStore as Monitored, ObjectStoreMetrics, StateStoreMetrics};
use crate::store_impl::verify::VerifyStateStore;
use crate::StateStore;

pub type HummockStorageType = impl StateStore + AsHummockTrait;
Expand Down Expand Up @@ -85,6 +82,11 @@ fn may_verify(state_store: impl StateStore + AsHummockTrait) -> impl StateStore
}
#[cfg(debug_assertions)]
{
use risingwave_common::util::env_var::env_var_is_true;
use tracing::info;

use crate::store_impl::verify::VerifyStateStore;

let expected = if env_var_is_true("ENABLE_STATE_STORE_VERIFY") {
info!("enable verify state store");
Some(SledStateStore::new_temp())
Expand Down

0 comments on commit a198200

Please sign in to comment.