tendermint / tm-db

Common database interface for various database backends for Tendermint Core and Cosmos SDK
Apache License 2.0
89 stars 136 forks source link

Rocksdb: create folder if it doesn't exist #245

Closed faddat closed 2 years ago

faddat commented 2 years ago

Instead of panicking and crashing, if rocksdb finds that it doesn't have a folder (eg: snapshots.db) it will now make it.

Tested and working here:

https://github.com/tharsis/evmos/pull/542

codecov[bot] commented 2 years ago

Codecov Report

Merging #245 (42f39d9) into master (b3c748f) will decrease coverage by 0.06%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #245      +/-   ##
==========================================
- Coverage   68.54%   68.48%   -0.07%     
==========================================
  Files          27       27              
  Lines        2130     2132       +2     
==========================================
  Hits         1460     1460              
- Misses        595      597       +2     
  Partials       75       75              
Impacted Files Coverage Δ
rocksdb.go 71.22% <0.00%> (-1.04%) :arrow_down:
Impacted Files Coverage Δ
rocksdb.go 71.22% <0.00%> (-1.04%) :arrow_down:
faddat commented 2 years ago

oh sure thing!

I have a habit of always fumpting. 1 moment please.

Back down to one file changed now.

github-actions[bot] commented 2 years ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.