Added update txn function

This commit is contained in:
Giulio rebuffo 2022-06-17 23:59:04 +02:00 committed by GitHub
parent 945b0e9e0f
commit 988a4b5510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,10 @@ func NewMemoryBatch(tx kv.Tx) *MemoryMutation {
}
}
func (m *MemoryMutation) UpdateTxn(tx kv.Tx) {
m.db = tx
}
func (m *MemoryMutation) isTableCleared(table string) bool {
_, ok := m.clearedTables[table]
return ok