Example #1
0
func (txn *Txn) Abort() {
	if txn._txn != nil {
		C.mdb_txn_abort(txn._txn)
		runtime.UnlockOSThread()
		txn._txn = nil
	}
}
Example #2
0
func (txn *Txn) Abort() {
	if txn.txn == nil {
		return
	}
	C.mdb_txn_abort(txn.txn)
	// The transaction handle is always freed.
	txn.txn = nil
}
Example #3
0
func (txn *Txn) Abort() {
	if txn._txn == nil {
		return
	}
	C.mdb_txn_abort(txn._txn)
	runtime.UnlockOSThread()
	// The transaction handle is always freed.
	txn._txn = nil
}
Example #4
0
File: txn.go Project: Crest/gomdb
func (txn *Txn) Abort() {
	C.mdb_txn_abort(txn._txn)
	txn._txn = nil
}