-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make bigtable delete-slots actually usable #20037
Make bigtable delete-slots actually usable #20037
Conversation
@@ -439,7 +439,7 @@ pub fn bigtable_process_command(ledger_path: &Path, matches: &ArgMatches<'_>) { | |||
} | |||
("delete-slots", Some(arg_matches)) => { | |||
let slots = values_t_or_exit!(arg_matches, "slots", Slot); | |||
let dry_run = !value_t_or_exit!(arg_matches, "force", bool); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no way to go past this ..._or_exit!()
given this:
solana/ledger-tool/src/bigtable.rs
Line 292 in d6d2840
.takes_value(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about that lack of testing
Codecov Report
@@ Coverage Diff @@
## master #20037 +/- ##
=========================================
+ Coverage 82.6% 82.8% +0.2%
=========================================
Files 478 487 +9
Lines 133547 134800 +1253
=========================================
+ Hits 110369 111680 +1311
+ Misses 23178 23120 -58 |
(cherry picked from commit 22f45dc)
(cherry picked from commit 22f45dc)
(cherry picked from commit 22f45dc) Co-authored-by: Ryo Onodera <[email protected]>
(cherry picked from commit 22f45dc) Co-authored-by: Ryo Onodera <[email protected]>
This reverts commit f56e178.
Problem
seems last-minute review adjustments made
solana-ledger-tool bigtable delete-slots
not workable at all (with/without--force
)Summary of Changes
context: #19931