- setPreallocSize
method to allow setting preallocate size of log file to pad the file.
- <init>
constructor for FileTxnLog. Take the directory where the txnlogs are stored
- getLogFiles
Find the log file that starts at, or just before, the snapshot. Return this and
all subsequent logs.
- read
start reading all the transactions from the given zxid
- close
- makeChecksumAlgorithm
creates a checksum alogrithm to be used
- readHeader
read the header of the transaction file
- truncate
truncate the current transaction logs
- getCurrentLogSize
Return the current on-disk size of log size. This will be accurate only after
commit() is called. Ot
- append
append an entry to the transaction log
- commit
commit the logs. make sure that evertyhing hits the disk
- isForceSync
the forceSync value. true if forceSync is enabled, false otherwise.