fn write_transaction(&mut self, transaction: &Transaction) -> JournalCheckpoint {
        let checkpoint = self.journal_file_checkpoint();
        {
            for mutation in &transaction.mutations {
                self.write_record(&JournalRecord::Mutation {
                    object_id: mutation.0,
                    mutation: mutation.1.clone(),
                });
            }
            self.write_record(&JournalRecord::Commit);
        }
        checkpoint
    }
// Extends JournalWriter to write a transaction.
Extends JournalWriter to write a transaction.
Extends JournalWriter to write a transaction .
fn write_transaction(&mut self, transaction: &Transaction) -> JournalCheckpoint {
        let checkpoint = self.journal_file_checkpoint();
        {
            for mutation in &transaction.mutations {
                self.write_record(&JournalRecord::Mutation {
                    object_id: mutation.0,
                    mutation: mutation.1.clone(),
                });
            }
            self.write_record(&JournalRecord::Commit);
        }
        checkpoint
    }
fn write_transaction ( & mut self , transaction : & Transaction ) -> JournalCheckpoint { let checkpoint = self . journal_file_checkpoint ( ) ; { for mutation in & transaction . mutations { self . write_record ( & JournalRecord :: Mutation { object_id : mutation . 0 , mutation : mutation . 1 . clone ( ) , } ) ; } self . write_record ( & JournalRecord :: Commit ) ; } checkpoint }
Extends JournalWriter to write a transaction.
Extends JournalWriter to write a transaction .
&mut self
transaction
&Transaction
&mut self
transaction
&Transaction