@@ -68,17 +68,17 @@ impl Store {
6868 // needs without being artificially capped at 1/3 of the total.
6969 let cache_size_bytes = config. db_block_cache_mb * 1024 * 1024 ;
7070 let shared_cache = rocksdb:: Cache :: new_lru_cache ( cache_size_bytes) ;
71- info ! ( "shared LRU block cache: db_block_cache_mb='{}'" , config. db_block_cache_mb) ;
71+ debug ! ( "shared LRU block cache: db_block_cache_mb='{}'" , config. db_block_cache_mb) ;
7272
73- let txstore_db = DB :: open_with_cache ( & path. join ( "txstore" ) , config, verify_compat, Some ( & shared_cache) ) ;
73+ let txstore_db = DB :: open ( & path. join ( "txstore" ) , config, verify_compat, & shared_cache) ;
7474 let added_blockhashes = load_blockhashes ( & txstore_db, & BlockRow :: done_filter ( ) ) ;
7575 debug ! ( "{} blocks were added" , added_blockhashes. len( ) ) ;
7676
77- let history_db = DB :: open_with_cache ( & path. join ( "history" ) , config, verify_compat, Some ( & shared_cache) ) ;
77+ let history_db = DB :: open ( & path. join ( "history" ) , config, verify_compat, & shared_cache) ;
7878 let indexed_blockhashes = load_blockhashes ( & history_db, & BlockRow :: done_filter ( ) ) ;
7979 debug ! ( "{} blocks were indexed" , indexed_blockhashes. len( ) ) ;
8080
81- let cache_db = DB :: open_with_cache ( & path. join ( "cache" ) , config, verify_compat, Some ( & shared_cache) ) ;
81+ let cache_db = DB :: open ( & path. join ( "cache" ) , config, verify_compat, & shared_cache) ;
8282
8383 let db_metrics = Arc :: new ( RocksDbMetrics :: new ( & metrics) ) ;
8484 txstore_db. start_stats_exporter ( Arc :: clone ( & db_metrics) , "txstore_db" ) ;
0 commit comments