File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ pub async fn put_stream_hot_tier(
631
631
. await ?;
632
632
let storage = CONFIG . storage ( ) . get_object_store ( ) ;
633
633
let mut stream_metadata = storage. get_object_store_format ( & stream_name) . await ?;
634
- stream_metadata. hot_tier_enabled = Some ( true ) ;
634
+ stream_metadata. hot_tier_enabled = true ;
635
635
storage
636
636
. put_stream_manifest ( & stream_name, & stream_metadata)
637
637
. await ?;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ pub struct LogStreamMetadata {
74
74
pub time_partition_limit : Option < NonZeroU32 > ,
75
75
pub custom_partition : Option < String > ,
76
76
pub static_schema_flag : bool ,
77
- pub hot_tier_enabled : Option < bool > ,
77
+ pub hot_tier_enabled : bool ,
78
78
pub stream_type : Option < String > ,
79
79
pub log_source : LogSource ,
80
80
}
@@ -257,7 +257,7 @@ impl StreamInfo {
257
257
let stream = map
258
258
. get_mut ( stream_name)
259
259
. ok_or ( MetadataError :: StreamMetaNotFound ( stream_name. to_string ( ) ) ) ?;
260
- stream. hot_tier_enabled = Some ( enable) ;
260
+ stream. hot_tier_enabled = enable;
261
261
Ok ( ( ) )
262
262
}
263
263
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ pub struct ObjectStoreFormat {
113
113
skip_serializing_if = "std::ops::Not::not"
114
114
) ]
115
115
pub static_schema_flag : bool ,
116
- #[ serde( skip_serializing_if = "Option::is_none" ) ]
117
- pub hot_tier_enabled : Option < bool > ,
116
+ #[ serde( default ) ]
117
+ pub hot_tier_enabled : bool ,
118
118
pub stream_type : Option < String > ,
119
119
#[ serde( default ) ]
120
120
pub log_source : LogSource ,
@@ -217,7 +217,7 @@ impl Default for ObjectStoreFormat {
217
217
time_partition_limit : None ,
218
218
custom_partition : None ,
219
219
static_schema_flag : false ,
220
- hot_tier_enabled : None ,
220
+ hot_tier_enabled : false ,
221
221
log_source : LogSource :: default ( ) ,
222
222
}
223
223
}
You can’t perform that action at this time.
0 commit comments