File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ fn tree_recovery_cleanup_orphans() -> lsm_tree::Result<()> {
1010 tree. insert ( "a" , "a" , 0 ) ;
1111 tree. flush_active_memtable ( 0 ) ?;
1212
13- assert ! ( folder. path( ) . join( "tables" ) . join( "1 " ) . try_exists( ) ?) ;
13+ assert ! ( folder. path( ) . join( "tables" ) . join( "0 " ) . try_exists( ) ?) ;
1414
1515 tree. major_compact ( u64:: MAX , 0 ) ?;
1616
17- assert ! ( folder. path( ) . join( "tables" ) . join( "2 " ) . try_exists( ) ?) ;
17+ assert ! ( folder. path( ) . join( "tables" ) . join( "1 " ) . try_exists( ) ?) ;
1818 }
1919
2020 std:: fs:: File :: create ( folder. path ( ) . join ( "tables" ) . join ( "0" ) ) ?;
@@ -23,8 +23,7 @@ fn tree_recovery_cleanup_orphans() -> lsm_tree::Result<()> {
2323 let _tree = Config :: new ( & folder, SequenceNumberCounter :: default ( ) ) . open ( ) ?;
2424
2525 assert ! ( !folder. path( ) . join( "tables" ) . join( "0" ) . try_exists( ) ?) ;
26- assert ! ( !folder. path( ) . join( "tables" ) . join( "1" ) . try_exists( ) ?) ;
27- assert ! ( folder. path( ) . join( "tables" ) . join( "2" ) . try_exists( ) ?) ;
26+ assert ! ( folder. path( ) . join( "tables" ) . join( "1" ) . try_exists( ) ?) ;
2827 }
2928
3029 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -8,13 +8,9 @@ fn tree_recover_table_counter() -> lsm_tree::Result<()> {
88 let counter_expected = {
99 let tree = Config :: new ( & folder, SequenceNumberCounter :: default ( ) ) . open ( ) ?;
1010
11- assert_eq ! ( 0 , tree. next_table_id( ) ) ;
12-
1311 tree. insert ( "a" , "a" , 0 ) ;
1412 tree. flush_active_memtable ( 0 ) ?;
1513
16- assert_eq ! ( 2 , tree. next_table_id( ) ) ;
17-
1814 tree. insert ( "b" , "b" , 0 ) ;
1915 tree. flush_active_memtable ( 0 ) ?;
2016
You can’t perform that action at this time.
0 commit comments