Opened 16 years ago

Last modified 7 years ago

#367 new feature-request

Do not store per-torrent settings that are saved in the resume data

Reported by: andar Owned by: andar
Priority: trivial Milestone: 2.x
Component: Core Version:
Keywords: Cc:

Description

Since libtorrent now stores certain per-torrent settings in the resume data, we no longer need to save this data in the state file.

Change History (8)

comment:1 by (none), 16 years ago

Milestone: 1.1.0

Milestone 1.1.0 deleted

comment:2 by Plisk, 15 years ago

Milestone: 1.2.0

comment:3 by andar, 15 years ago

Milestone: 1.2.0Future
Version: 1.1.0_dev

comment:4 by andar, 15 years ago

Type: bugfeature-request

comment:5 by Calum, 14 years ago

Priority: majortrivial

comment:6 by Calum, 11 years ago

Milestone: Future1.4.0

These can be removed without any major issue,

torrent_status["last_seen_complete"]
torrent_status["total_uploaded"],
torrent.trackers

These would require updating options from either bdecoded resume_data or handle.status

torrent.options["compact_allocation"],
torrent.options["max_connections"],
torrent.options["max_upload_slots"],
torrent.options["max_upload_speed"],
torrent.options["max_download_speed"],
torrent.options["sequential_download"],
torrent.options["file_priorities"],
torrent.options["auto_managed"],

torrent.time_added could be replaced by lt torrent status added_time

torrent.is_finished could be updated using lt torrent status completed_time but need to verify the reason for original addition [f769429e] and whether still required.


For reference the entire resume data file format for 0.16 (currently lt docs are outdated):

file-format
file-version
info-hash
blocks per piece
pieces
slots
total_uploaded
total_downloaded
active_time
seeding_time
num_seeds
num_downloaders
upload_rate_limit
download_rate_limit
max_connections
max_uploads
seed_mode
file_priority
piece_priority
auto_managed
sequential_download 
paused
trackers 
mapped_files
url-list
httpseeds
merkle tree
peers
unfinished
file sizes
allocation
added_time
announce_to_dht
announce_to_lsd
announce_to_trackers
banned_peers
banned_peers6
completed_time
finished_time
last_download
last_scrape
last_seen_complete
last_upload
libtorrent-version
num_incomplete
peers6
super_seeding
uuid
url
feed
info

comment:7 by Calum, 11 years ago

Removed last_seen_complete and total_uploaded: [0da6739f945ce8b]

comment:8 by Calum, 7 years ago

Milestone: 2.0.x2.x

Milestone renamed

Note: See TracTickets for help on using tickets.