mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 21:11:20 +00:00
Torrent: don't drop db on "torrent_hashes --rebuild" #4118 Open
This commit is contained in:
parent
0fd12743e7
commit
45adf8fba9
@ -172,7 +172,7 @@ var printTorrentHashes = &cobra.Command{
|
||||
}
|
||||
|
||||
if forceRebuild { // remove and create .torrent files (will re-read all snapshots)
|
||||
removePieceCompletionStorage(snapshotDir)
|
||||
//removePieceCompletionStorage(snapshotDir)
|
||||
files, err := downloader.AllTorrentPaths(snapshotDir)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -232,6 +232,7 @@ var printTorrentHashes = &cobra.Command{
|
||||
},
|
||||
}
|
||||
|
||||
//nolint
|
||||
func removePieceCompletionStorage(snapshotDir string) {
|
||||
_ = os.RemoveAll(filepath.Join(snapshotDir, "db"))
|
||||
_ = os.RemoveAll(filepath.Join(snapshotDir, ".torrent.db"))
|
||||
|
Loading…
Reference in New Issue
Block a user