@@ -13,13 +13,17 @@ fn blob_tree_major_compact_relocation_simple() -> lsm_tree::Result<()> {
1313 let new_big_value = b"winter!" . repeat ( 128_000 ) ;
1414
1515 {
16- let tree = lsm_tree:: Config :: new ( path, SequenceNumberCounter :: default ( ) , SequenceNumberCounter :: default ( ) )
17- . with_kv_separation ( Some (
18- KvSeparationOptions :: default ( )
19- . compression ( lsm_tree:: CompressionType :: None )
20- . age_cutoff ( 1.0 ) ,
21- ) )
22- . open ( ) ?;
16+ let tree = lsm_tree:: Config :: new (
17+ path,
18+ SequenceNumberCounter :: default ( ) ,
19+ SequenceNumberCounter :: default ( ) ,
20+ )
21+ . with_kv_separation ( Some (
22+ KvSeparationOptions :: default ( )
23+ . compression ( lsm_tree:: CompressionType :: None )
24+ . age_cutoff ( 1.0 ) ,
25+ ) )
26+ . open ( ) ?;
2327
2428 assert ! ( tree. get( "big" , SeqNo :: MAX ) ?. is_none( ) ) ;
2529 tree. insert ( "big" , & big_value, 0 ) ;
@@ -104,13 +108,17 @@ fn blob_tree_major_compact_relocation_repeated_key() -> lsm_tree::Result<()> {
104108 let very_big_value = b"winter!" . repeat ( 128_000 ) ;
105109
106110 {
107- let tree = lsm_tree:: Config :: new ( path, SequenceNumberCounter :: default ( ) , SequenceNumberCounter :: default ( ) )
108- . with_kv_separation ( Some (
109- KvSeparationOptions :: default ( )
110- . compression ( lsm_tree:: CompressionType :: None )
111- . age_cutoff ( 1.0 ) ,
112- ) )
113- . open ( ) ?;
111+ let tree = lsm_tree:: Config :: new (
112+ path,
113+ SequenceNumberCounter :: default ( ) ,
114+ SequenceNumberCounter :: default ( ) ,
115+ )
116+ . with_kv_separation ( Some (
117+ KvSeparationOptions :: default ( )
118+ . compression ( lsm_tree:: CompressionType :: None )
119+ . age_cutoff ( 1.0 ) ,
120+ ) )
121+ . open ( ) ?;
114122
115123 assert ! ( tree. get( "big" , SeqNo :: MAX ) ?. is_none( ) ) ;
116124 tree. insert ( "a" , & big_value, 0 ) ;
@@ -213,13 +221,17 @@ fn blob_tree_major_compact_relocation_interleaved() -> lsm_tree::Result<()> {
213221 let big_value = b"neptune!" . repeat ( 2_000 ) ;
214222
215223 {
216- let tree = lsm_tree:: Config :: new ( path, SequenceNumberCounter :: default ( ) , SequenceNumberCounter :: default ( ) )
217- . with_kv_separation ( Some (
218- KvSeparationOptions :: default ( )
219- . compression ( lsm_tree:: CompressionType :: None )
220- . age_cutoff ( 1.0 ) ,
221- ) )
222- . open ( ) ?;
224+ let tree = lsm_tree:: Config :: new (
225+ path,
226+ SequenceNumberCounter :: default ( ) ,
227+ SequenceNumberCounter :: default ( ) ,
228+ )
229+ . with_kv_separation ( Some (
230+ KvSeparationOptions :: default ( )
231+ . compression ( lsm_tree:: CompressionType :: None )
232+ . age_cutoff ( 1.0 ) ,
233+ ) )
234+ . open ( ) ?;
223235
224236 assert ! ( tree. get( "big" , SeqNo :: MAX ) ?. is_none( ) ) ;
225237 tree. insert ( "a" , b"smol" , 0 ) ;
0 commit comments