pub fn merge_append_table(&self, mut rhs: Self) {
        for slot in rhs.slots.iter_mut() {
            for (id, memtable) in std::mem::take(&mut *slot.write()) {
                if let Some(existing_memtable) = self.get(id) {
                    existing_memtable
                        .write()
                        .merge_append_table(&mut *memtable.write());
                } else {
                    self.insert(id, memtable);
                }
            }
        }
        // Tombstones from both table are identical.
        debug_assert_eq!(
            self.removed_memtables.lock().len(),
            rhs.removed_memtables.lock().len()
        );
    }
/// Merges with a [`MemTableAccessor`] that contains only append data.
/// Assumes `self` contains all rewritten data.
///
/// This method is only used for recovery.
Merges with a [`MemTableAccessor`] that contains only append data.
Assumes `self` contains all rewritten data.

This method is only used for recovery.
Merges with a [ ` MemTableAccessor ` ] that contains only append data . Assumes ` self ` contains all rewritten data . This method is only used for recovery .
pub fn merge_append_table(&self, mut rhs: Self) {
        for slot in rhs.slots.iter_mut() {
            for (id, memtable) in std::mem::take(&mut *slot.write()) {
                if let Some(existing_memtable) = self.get(id) {
                    existing_memtable
                        .write()
                        .merge_append_table(&mut *memtable.write());
                } else {
                    self.insert(id, memtable);
                }
            }
        }
        // Tombstones from both table are identical.
        debug_assert_eq!(
            self.removed_memtables.lock().len(),
            rhs.removed_memtables.lock().len()
        );
    }
pub fn merge_append_table ( & self , mut rhs : Self ) { for slot in rhs . slots . iter_mut ( ) { for ( id , memtable ) in std :: mem :: take ( & mut * slot . write ( ) ) { if let Some ( existing_memtable ) = self . get ( id ) { existing_memtable . write ( ) . merge_append_table ( & mut * memtable . write ( ) ) ; } else { self . insert ( id , memtable ) ; } } } // Tombstones from both table are identical. debug_assert_eq ! ( self removed_memtables lock ( ) len ( ) rhs removed_memtables lock ( ) len ( ) ) ; }
Merges with a [`MemTableAccessor`] that contains only append data.
Merges with a [ ` MemTableAccessor ` ] that contains only append data .
&self
rhs
Self