Commit e4ed80c
authored
cmd/utils: add --only-history flag to rm-state command (#20899)
Adds `--only-history` (alias `--history`) to `erigon seg rm-state`.
When set, restricts deletion to history files (`SnapHistory` +
`SnapIdx`) only — leaving domain data (`.kv` files in `SnapDomain`,
accessor files) untouched.
Useful when combined with `--step from-to` to prune old history without
touching domain snapshots.1 parent fd74bee commit e4ed80c
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
145 | 158 | | |
146 | 159 | | |
147 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
| |||
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
| 703 | + | |
702 | 704 | | |
703 | 705 | | |
704 | 706 | | |
| |||
728 | 730 | | |
729 | 731 | | |
730 | 732 | | |
| 733 | + | |
| 734 | + | |
731 | 735 | | |
732 | 736 | | |
733 | 737 | | |
| |||
1034 | 1038 | | |
1035 | 1039 | | |
1036 | 1040 | | |
| 1041 | + | |
1037 | 1042 | | |
1038 | 1043 | | |
1039 | 1044 | | |
| |||
1042 | 1047 | | |
1043 | 1048 | | |
1044 | 1049 | | |
| 1050 | + | |
1045 | 1051 | | |
1046 | 1052 | | |
1047 | 1053 | | |
| |||
0 commit comments