pub fn flush_sync(&mut self) -> io::Result<()> {
        let start = to_page_size(self.last_flush_end_pos);
        let end = to_page_size(self.next_write_pos);

        if end > start {
            self.mmap.flush_range(start, end - start)?;
            self.last_flush_end_pos = end;
            self.file.flush()
        } else {
            Ok(())
        }
    }
/// Flush the index at page boundaries. This may leave some indexed values
/// not flushed during crash, which will be rehydrated on restart.
Flush the index at page boundaries. This may leave some indexed values
not flushed during crash, which will be rehydrated on restart.
Flush the index at page boundaries . This may leave some indexed values not flushed during crash which will be rehydrated on restart .
pub fn flush_sync(&mut self) -> io::Result<()> {
        let start = to_page_size(self.last_flush_end_pos);
        let end = to_page_size(self.next_write_pos);
        if end > start {
            self.mmap.flush_range(start, end - start)?;
            self.last_flush_end_pos = end;
            self.file.flush()
        } else {
            Ok(())
        }
    }
pub fn flush_sync ( & mut self ) -> io :: Result < ( ) > { let start = to_page_size ( self . last_flush_end_pos ) ; let end = to_page_size ( self . next_write_pos ) ; if end > start { self . mmap . flush_range ( start , end - start ) ? ; self . last_flush_end_pos = end ; self . file . flush ( ) } else { Ok ( ( ) ) } }
Flush the index at page boundaries.
Flush the index at page boundaries .
&mut self
&mut self