deprecate dont_flush_write_cache setting

This commit is contained in:
arvidn 2016-12-31 15:53:35 -05:00 committed by Arvid Norberg
parent 45f3f80d86
commit 005d1a47b0
2 changed files with 3 additions and 5 deletions

View File

@ -289,16 +289,12 @@ namespace libtorrent
use_read_cache, use_read_cache,
#ifndef TORRENT_NO_DEPRECATE #ifndef TORRENT_NO_DEPRECATE
use_write_cache, use_write_cache,
#else
deprecated7,
#endif
// this will make the disk cache never flush a write piece if it would // this will make the disk cache never flush a write piece if it would
// cause is to have to re-read it once we want to calculate the piece // cause is to have to re-read it once we want to calculate the piece
// hash // hash
dont_flush_write_cache, dont_flush_write_cache,
#ifndef TORRENT_NO_DEPRECATE
// ``explicit_read_cache`` defaults to 0. If set to something greater // ``explicit_read_cache`` defaults to 0. If set to something greater
// than 0, the disk read cache will not be evicted by cache misses and // than 0, the disk read cache will not be evicted by cache misses and
// will explicitly be controlled based on the rarity of pieces. Rare // will explicitly be controlled based on the rarity of pieces. Rare
@ -309,7 +305,9 @@ namespace libtorrent
// clamped. // clamped.
explicit_read_cache, explicit_read_cache,
#else #else
deprecated7,
deprecated10, deprecated10,
deprecated13,
#endif #endif
// allocate separate, contiguous, buffers for read and write calls. // allocate separate, contiguous, buffers for read and write calls.

View File

@ -152,7 +152,7 @@ namespace libtorrent
SET(use_parole_mode, true, 0), SET(use_parole_mode, true, 0),
SET(use_read_cache, true, 0), SET(use_read_cache, true, 0),
DEPRECATED_SET(use_write_cache, true, 0), DEPRECATED_SET(use_write_cache, true, 0),
SET(dont_flush_write_cache, false, 0), DEPRECATED_SET(dont_flush_write_cache, false, 0),
DEPRECATED_SET(explicit_read_cache, false, 0), DEPRECATED_SET(explicit_read_cache, false, 0),
SET(coalesce_reads, false, 0), SET(coalesce_reads, false, 0),
SET(coalesce_writes, false, 0), SET(coalesce_writes, false, 0),