Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
statedb: Avoid cloning of txn in Get()/GetWatch()
If a table is queried with a WriteTxn and the table is being modified, then in the general case we need to use a clone of the (part) transaction as the future modifications must not affect the objects returned by the iterator. However, this is not the case for Get()/GetWatch() and there we can avoid the clone since no iterator is returned to the caller. Signed-off-by: Jussi Maki <[email protected]>
- Loading branch information