forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable ledger-tool copy command to infer target_db shred storage type. (
solana-labs#27438) #### Problem The ledger-tool copy command currently assumes target_db uses the same shred storage type as the source ledger. #### Summary of Changes This PR enables ledger-tool copy command to infer the target_db shred storage type based on whether rocksdb or rocksdb_fifo exists under the target_db directory (same way as how ledger-tool infers the shred storage type for the main db.) If the ledger-tool is not able to infer the shred storage type of the target_db, then the default level compaction will be used.
- Loading branch information
1 parent
c0e4379
commit 70c4f6e
Showing
2 changed files
with
106 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters