mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
Fix #1869: Set the disk io read/write to bypass OS cache in Windows as suggested in http://code.google.com/p/libtorrent/issues/detail?id=166
This commit is contained in:
parent
532973c3d1
commit
52bf08dfd1
@ -95,6 +95,11 @@ class Core(component.Component):
|
|||||||
|
|
||||||
# Set session settings
|
# Set session settings
|
||||||
self.settings.send_redundant_have = True
|
self.settings.send_redundant_have = True
|
||||||
|
if deluge.common.windows_check():
|
||||||
|
self.settings.disk_io_write_mode = \
|
||||||
|
lt.io_buffer_mode_t.disable_os_cache_for_aligned_files
|
||||||
|
self.settings.disk_io_read_mode = \
|
||||||
|
lt.io_buffer_mode_t.disable_os_cache_for_aligned_files
|
||||||
self.session.set_settings(self.settings)
|
self.session.set_settings(self.settings)
|
||||||
|
|
||||||
# Load metadata extension
|
# Load metadata extension
|
||||||
|
Loading…
x
Reference in New Issue
Block a user