close flushes the transaction journal contents to disk and closes the file.
()
| 170 | |
| 171 | // close flushes the transaction journal contents to disk and closes the file. |
| 172 | func (journal *txJournal) close() error { |
| 173 | var err error |
| 174 | |
| 175 | if journal.writer != nil { |
| 176 | err = journal.writer.Close() |
| 177 | journal.writer = nil |
| 178 | } |
| 179 | return err |
| 180 | } |