bmatsuo / lmdb-go

Bindings for the LMDB C library
BSD 3-Clause "New" or "Revised" License
159 stars 58 forks source link

lmdb: Txn.RunOp splits into two implementations based on termination #108

Closed bmatsuo closed 7 years ago

bmatsuo commented 7 years ago

This is fairly convenient because it is a reasonably fast path for the most common managed transactions.

Also, this addition will properly panic when commit is supplied from a managed transaction, which was a bug in the previous implementation.