Commit Graph

3 Commits

Author SHA1 Message Date
Alex Sharov
335efa7d12
torrent: don't cancel storage, because lib can't handle such error and can graceful-shutdown anyway (#938) 2023-03-14 08:41:43 +00:00
Alex Sharov
3e933bc456
Downloader: "incomplete" markers are more important than "complete", so commit them with fsync (#883)
On power-off recent "no-sync" txs may be lost. It will cause 2. cases:
- Good piece on disk and recent "complete" db marker lost. Self-Heal by
re-download.
- Bad piece on dis and recent "incomplete" db marker lost. No Self-Heal.
So, can't afford loosing recent "incomplete" markers.
2023-02-10 13:20:13 +07:00
Alex Sharov
0eb4f8388a
Downloader extract, step2 (#739) 2022-11-20 10:41:20 +07:00