pub fn append_rewrite(&mut self, entry_indexes: Vec<EntryIndex>) {
        let len = entry_indexes.len();
        if len > 0 {
            debug_assert_eq!(self.rewrite_count, self.entry_indexes.len());
            self.prepare_append(
                entry_indexes[0].index,
                // Rewrite -> Compact Append -> Rewrite.
                true, /* allow_hole */
                // Refer to case in `merge_append_table`. They can be adapted
                // to attack this path via a global rewrite without deleting
                // obsolete rewrite files.
                true, /* allow_overwrite */
            );
            self.global_stats.add(LogQueue::Rewrite, len);
            for ei in &entry_indexes {
                self.entry_indexes.push_back(ei.into());
            }
            self.rewrite_count = self.entry_indexes.len();
        }
    }
/// Appends some entries from rewrite queue. Assumes this table has no
/// append data.
///
/// This method is only used for recovery.
Appends some entries from rewrite queue. Assumes this table has no
append data.

This method is only used for recovery.
Appends some entries from rewrite queue . Assumes this table has no append data . This method is only used for recovery .
pub fn append_rewrite(&mut self, entry_indexes: Vec<EntryIndex>) {
        let len = entry_indexes.len();
        if len > 0 {
            debug_assert_eq!(self.rewrite_count, self.entry_indexes.len());
            self.prepare_append(
                entry_indexes[0].index,
                // Rewrite -> Compact Append -> Rewrite.
                true, /* allow_hole */
                // Refer to case in `merge_append_table`. They can be adapted
                // to attack this path via a global rewrite without deleting
                // obsolete rewrite files.
                true, /* allow_overwrite */
            );
            self.global_stats.add(LogQueue::Rewrite, len);
            for ei in &entry_indexes {
                self.entry_indexes.push_back(ei.into());
            }
            self.rewrite_count = self.entry_indexes.len();
        }
    }
pub fn append_rewrite ( & mut self , entry_indexes : Vec < EntryIndex > ) { let len = entry_indexes . len ( ) ; if len > 0 { debug_assert_eq ! ( self rewrite_count self entry_indexes len ( ) ) ; self . prepare_append ( entry_indexes [ 0 ] . index , // Rewrite -> Compact Append -> Rewrite. true , /* allow_hole */ // Refer to case in `merge_append_table`. They can be adapted // to attack this path via a global rewrite without deleting // obsolete rewrite files. true , /* allow_overwrite */ ) ; self . global_stats . add ( LogQueue :: Rewrite , len ) ; for ei in & entry_indexes { self . entry_indexes . push_back ( ei . into ( ) ) ; } self . rewrite_count = self . entry_indexes . len ( ) ; } }
Appends some entries from rewrite queue.
Appends some entries from rewrite queue .
&mut self
entry_indexes
Vec<EntryIndex>