Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there any way to check if a piece is written to disk completely? #1581

Closed
mianharisali opened this issue Jan 19, 2017 · 5 comments
Closed
Labels

Comments

@mianharisali
Copy link

No description provided.

@cas--
Copy link
Contributor

cas-- commented Jan 19, 2017

You can use torrent_handle.flush_cache to ensure this happens. And you can query session.get_cache_info(torrent_handle).

@cas--
Copy link
Contributor

cas-- commented Jan 19, 2017

@arvidn I noticed that cache_status struct is almost entirely deprecated apart from pieces so what does that mean for get_cache_info? Also session.disk_cache_no_pieces enum is not in the bindings...

@arvidn
Copy link
Owner

arvidn commented Jan 20, 2017

most of the counters from that struct have been moved to the session_stats counters. In the long run I would like to deprecate the get_cache_info call as well, but probably not until the disk cache gets removed.

@mianharisali
Copy link
Author

@cas-- what if cache size is zero in the session settings? and we call flush cache.
i think there should be an alert that shows a piece is written to the disk.

@stale
Copy link

stale bot commented Feb 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 29, 2020
@stale stale bot closed this as completed Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants