Skip to content

Commit 592da07

Browse files
author
Devdutt Shenoi
committed
method won't be called if hottier doesn't exist
1 parent 26f818d commit 592da07

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hottier.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,7 @@ impl HotTierManager {
713713
}
714714

715715
pub async fn put_internal_stream_hot_tier(&self) -> Result<(), HotTierError> {
716-
if CONFIG.options.hot_tier_storage_path.is_some()
717-
&& !self.check_stream_hot_tier_exists(INTERNAL_STREAM_NAME)
718-
{
716+
if !self.check_stream_hot_tier_exists(INTERNAL_STREAM_NAME) {
719717
let mut stream_hot_tier = StreamHotTier {
720718
version: Some(CURRENT_HOT_TIER_VERSION.to_string()),
721719
size: INTERNAL_STREAM_HOT_TIER_SIZE_BYTES.to_string(),

0 commit comments

Comments
 (0)