/** * Commits the transaction to the log file. */ void commit() throws IOException { Serialization.writeObject(oos, txns[curTxn]); sync(); // set clean flag to indicate blocks have been written to log setClean(txns[curTxn]); // open a new ObjectOutputStream in order to store // newer states of BlockIo oos = new DataOutputStream(new BufferedOutputStream(fos)); }
/** * Commits the transaction to the log file. */ void commit() throws IOException { oos.writeObject( txns[curTxn] ); sync(); // set clean flag to indicate blocks have been written to log setClean( txns[curTxn] ); // reset ObjectOutputStream in order to store // newer states of BlockIo oos = new ObjectOutputStream( fos ); oos.reset(); }
/** * Commits the transaction to the log file. */ void commit() throws IOException { oos.writeObject(txns[curTxn]); sync(); // set clean flag to indicate blocks have been written to log setClean(txns[curTxn]); // reset ObjectOutputStream in order to store // newer states of BlockIo oos = new ObjectOutputStream(fos); oos.reset(); }
/** * Commits the transaction to the log file. */ void commit() throws IOException { oos.writeObject(txns[curTxn]); sync(); // set clean flag to indicate blocks have been written to log setClean(txns[curTxn]); // reset ObjectOutputStream in order to store // newer states of BlockIo oos = new ObjectOutputStream(fos); oos.reset(); }