// Determines whether a mutation at the given checkpoint should be applied.  During replay, not
// all records should be applied because the object store or allocator might already contain the
// mutation.  After replay, that obviously isn't the case and we want to apply all mutations.
// Regardless, we want to keep track of the earliest mutation in the journal for a given object.
Determines whether a mutation at the given checkpoint should be applied.  During replay, not
all records should be applied because the object store or allocator might already contain the
mutation.  After replay, that obviously isn't the case and we want to apply all mutations.
Regardless, we want to keep track of the earliest mutation in the journal for a given object.
Determines whether a mutation at the given checkpoint should be applied . During replay not all records should be applied because the object store or allocator might already contain the mutation . After replay that obviously isn ' t the case and we want to apply all mutations . Regardless we want to keep track of the earliest mutation in the journal for a given object .
fn should_apply(&self, object_id: u64, journal_file_checkpoint: &JournalCheckpoint) -> bool {
        let super_block = &self.inner.lock().unwrap().super_block;
        let offset = super_block
            .journal_file_offsets
            .get(&object_id)
            .cloned()
            .unwrap_or(super_block.super_block_journal_file_offset);
        journal_file_checkpoint.file_offset >= offset
    }
fn should_apply ( & self , object_id : u64 , journal_file_checkpoint : & JournalCheckpoint ) -> bool { let super_block = & self . inner . lock ( ) . unwrap ( ) . super_block ; let offset = super_block . journal_file_offsets . get ( & object_id ) . cloned ( ) . unwrap_or ( super_block . super_block_journal_file_offset ) ; journal_file_checkpoint . file_offset >= offset }
Determines whether a mutation at the given checkpoint should be applied.
Determines whether a mutation at the given checkpoint should be applied .
&self
object_id
u64
journal_file_checkpoint
&JournalCheckpoint