mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
lsa: disable constant_time_size in binomial_heap implementation
Corrupts heap on boost < 1.60, and not needed. Fixes #698.
This commit is contained in:
@@ -158,7 +158,9 @@ thread_local T* prepared_buffers_allocator<T>::_prepared_buffer;
|
||||
// Consider using an intrusive container leveraging segment_descriptor objects.
|
||||
using segment_heap = boost::heap::binomial_heap<
|
||||
segment*, boost::heap::compare<segment_occupancy_descending_less_compare>,
|
||||
boost::heap::allocator<prepared_buffers_allocator<segment*>>>;
|
||||
boost::heap::allocator<prepared_buffers_allocator<segment*>>,
|
||||
// constant_time_size<true> causes corruption with boost < 1.60
|
||||
boost::heap::constant_time_size<false>>;
|
||||
using segment_heap_allocator = segment_heap::allocator_type;
|
||||
|
||||
struct segment {
|
||||
|
||||
Reference in New Issue
Block a user