fn update_real_size(&self) -> u64 {
        let sz = self.cache.metadata_iter().fold(0u64, |acc, x| match x {
            Ok((_, meta)) => acc + meta.get_size(),
            _ => acc,
        });
        self.total.store(sz, Ordering::SeqCst);
        sz
    }
/// Updates the internally kept database total bytes counter to the actual database value. This
/// function is costly as it does an entire iteration over the database metadata.
Updates the internally kept database total bytes counter to the actual database value. This
function is costly as it does an entire iteration over the database metadata.
Updates the internally kept database total bytes counter to the actual database value . This function is costly as it does an entire iteration over the database metadata .
fn update_real_size(&self) -> u64 {
        let sz = self.cache.metadata_iter().fold(0u64, |acc, x| match x {
            Ok((_, meta)) => acc + meta.get_size(),
            _ => acc,
        });
        self.total.store(sz, Ordering::SeqCst);
        sz
    }
fn update_real_size ( & self ) -> u64 { let sz = self . cache . metadata_iter ( ) . fold ( 0u64 , | acc , x | match x { Ok ( ( _ , meta ) ) => acc + meta . get_size ( ) , _ => acc , } ) ; self . total . store ( sz , Ordering :: SeqCst ) ; sz }
Updates the internally kept database total bytes counter to the actual database value.
Updates the internally kept database total bytes counter to the actual database value .
&self