pub fn grow_data(&self, data_index: u64, current_capacity_pow2: u8) {
        let new_bucket = BucketStorage::new_resized(
            &self.drives,
            self.index.max_search,
            self.data.get(data_index as usize),
            std::cmp::max(current_capacity_pow2 + 1, DEFAULT_CAPACITY_POW2),
            1 << data_index,
            Self::elem_size(),
            &self.stats.data,
        );
        self.reallocated.add_reallocation();
        let mut items = self.reallocated.items.lock().unwrap();
        items.data = Some((data_index, new_bucket));
    }
/// grow a data bucket
/// The application of the new bucket is deferred until the next write lock.
grow a data bucket
The application of the new bucket is deferred until the next write lock.
grow a data bucket The application of the new bucket is deferred until the next write lock .
pub fn grow_data(&self, data_index: u64, current_capacity_pow2: u8) {
        let new_bucket = BucketStorage::new_resized(
            &self.drives,
            self.index.max_search,
            self.data.get(data_index as usize),
            std::cmp::max(current_capacity_pow2 + 1, DEFAULT_CAPACITY_POW2),
            1 << data_index,
            Self::elem_size(),
            &self.stats.data,
        );
        self.reallocated.add_reallocation();
        let mut items = self.reallocated.items.lock().unwrap();
        items.data = Some((data_index, new_bucket));
    }
pub fn grow_data ( & self , data_index : u64 , current_capacity_pow2 : u8 ) { let new_bucket = BucketStorage :: new_resized ( & self . drives , self . index . max_search , self . data . get ( data_index as usize ) , std :: cmp :: max ( current_capacity_pow2 + 1 , DEFAULT_CAPACITY_POW2 ) , 1 << data_index , Self :: elem_size ( ) , & self . stats . data , ) ; self . reallocated . add_reallocation ( ) ; let mut items = self . reallocated . items . lock ( ) . unwrap ( ) ; items . data = Some ( ( data_index , new_bucket ) ) ; }
grow a data bucket
The application of the new bucket is deferred until the next write lock.
grow a data bucket The application of the new bucket is deferred until the next write lock .
&self
data_index
u64
current_capacity_pow2
u8