pub fn batch (&mut self)  -> Result<(), Error> {
        self.log_file.flush()?;
        self.log_file.sync()?;

        self.flush()?;
        self.dirty.clear();

        self.table_file.sync()?;
        let table_len = self.table_file.len()?;

        self.link_file.sync()?;
        let link_len = self.link_file.len()?;

        self.data_file.flush()?;
        self.data_file.sync()?;
        let data_len = self.data_file.len()?;

        self.log_file.reset(table_len);
        self.log_file.init(data_len, table_len, link_len)?;
        self.log_file.flush()?;
        self.log_file.sync()?;

        Ok(())
    }
/// end current batch and start a new batch
end current batch and start a new batch
end current batch and start a new batch
pub fn batch (&mut self)  -> Result<(), Error> {
        self.log_file.flush()?;
        self.log_file.sync()?;
        self.flush()?;
        self.dirty.clear();
        self.table_file.sync()?;
        let table_len = self.table_file.len()?;
        self.link_file.sync()?;
        let link_len = self.link_file.len()?;
        self.data_file.flush()?;
        self.data_file.sync()?;
        let data_len = self.data_file.len()?;
        self.log_file.reset(table_len);
        self.log_file.init(data_len, table_len, link_len)?;
        self.log_file.flush()?;
        self.log_file.sync()?;
        Ok(())
    }
pub fn batch ( & mut self ) -> Result < ( ) , Error > { self . log_file . flush ( ) ? ; self . log_file . sync ( ) ? ; self . flush ( ) ? ; self . dirty . clear ( ) ; self . table_file . sync ( ) ? ; let table_len = self . table_file . len ( ) ? ; self . link_file . sync ( ) ? ; let link_len = self . link_file . len ( ) ? ; self . data_file . flush ( ) ? ; self . data_file . sync ( ) ? ; let data_len = self . data_file . len ( ) ? ; self . log_file . reset ( table_len ) ; self . log_file . init ( data_len , table_len , link_len ) ? ; self . log_file . flush ( ) ? ; self . log_file . sync ( ) ? ; Ok ( ( ) ) }
end current batch and start a new batch
end current batch and start a new batch
&mut self