good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 45adf8fb authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

Torrent: don't drop db on "torrent_hashes --rebuild" #4118 Open

parent 0fd12743
No related branches found
No related tags found
No related merge requests found
......@@ -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"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment