(cherry picked from commit 9c82e8c72b) Signed-off-by: Wei Fu <fuweid89@gmail.com>
9c82e8c72b
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
ReadTxs are designed for read-only accesses to the backend using a read-only boltDB transaction. Since BatchTx's are long-running transactions, all writes to BatchTx will writeback to ReadTx, overlaying the base read-only transaction.