rocksdb/cache
raistlin ee2b1ec1e8 Fix unstable floating point exception
Summary:
Fix unstable floating point exception, tested on Windows, 64-bit build.
The problem appeared in `SetCapacity()` method at line

`high_pri_pool_capacity_ = capacity_ * high_pri_pool_ratio_;`

`high_pri_pool_ratio_` was not initialized at that moment, because
`SetHighPriorityPoolRatio()` is called after `SetCapacity()`. So,
`high_pri_pool_ratio_` contained garbage, which caused "Floating point
exception" sometimes.
Closes https://github.com/facebook/rocksdb/pull/3052

Differential Revision: D6111161

Pulled By: yiwu-arbug

fbshipit-source-id: d170329111ad12b4bf9bbcf37bcb6411523438ae
2017-10-20 10:12:49 -07:00
..
cache_bench.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
cache_test.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
clock_cache.cc Replace dynamic_cast<> 2017-07-28 16:27:16 -07:00
clock_cache.h Change RocksDB License 2017-07-15 16:11:23 -07:00
lru_cache_test.cc LRUCacheShard cache line size alignment 2017-07-24 10:54:37 -07:00
lru_cache.cc Fix unstable floating point exception 2017-10-20 10:12:49 -07:00
lru_cache.h Overload new[] to properly align LRUCacheShard 2017-08-14 14:41:56 -07:00
sharded_cache.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
sharded_cache.h Change RocksDB License 2017-07-15 16:11:23 -07:00