solana/ledger-tool
steviez adcc36da8e
Add fallback for ledger-tool commands to create new column families (#26565)
RocksDB settings include an option to create_if_missing, which will
create missing columns or the entire rocksdb directory if starting from
scratch. However, create_if_missing functionality only works if the
session has Primary (read+write) access. Many ledger-tool commands only
need Secondary (read-only) access to the database, so these commands are
unable to open the Blockstore when a column must be added.

This change detects when Secondary access open fails due to missing
column(s) or files, opens the database temporarily with Primary access,
and then reattempts to open the database Secondary access.
2022-08-14 05:20:13 -05:00
..
src Add fallback for ledger-tool commands to create new column families (#26565) 2022-08-14 05:20:13 -05:00
tests Allow ledger tool to automatically detect the shred compaction style (#26182) 2022-07-19 01:19:17 +08:00
.gitignore
Cargo.toml chore: bump chrono from 0.4.19 to 0.4.21 (#27076) 2022-08-11 09:28:50 -06:00