예제 #1
0
파일: txn.go 프로젝트: Crest/gomdb
func (txn *Txn) Commit() error {
	ret := C.mdb_txn_commit(txn._txn)
	if ret != SUCCESS {
		return Errno(ret)
	}
	return nil
}
예제 #2
0
파일: txn.go 프로젝트: postfix/gomdb
func (txn *Txn) Commit() error {
	ret := C.mdb_txn_commit(txn._txn)
	runtime.UnlockOSThread()
	if ret != SUCCESS {
		return Errno(ret)
	}
	return nil
}
예제 #3
0
파일: txn.go 프로젝트: glycerine/gomdb
func (txn *Txn) Commit() error {
	ret := C.mdb_txn_commit(txn.txn)
	// The transaction handle is freed if there was no error
	if ret == SUCCESS {
		txn.txn = nil
	}
	return errno(ret)
}
예제 #4
0
파일: txn.go 프로젝트: jmptrader/gomdb
func (txn *Txn) Commit() error {
	ret := C.mdb_txn_commit(txn._txn)
	runtime.UnlockOSThread()
	// The transaction handle is freed if there was no error
	if ret == C.MDB_SUCCESS {
		txn._txn = nil
	}
	return errno(ret)
}
예제 #5
0
파일: txn.go 프로젝트: jbooth/flotilla
func (txn *Txn) Commit() error {
	if txn._txn == nil {
		return nil // already committed/aborted
	}
	ret := C.mdb_txn_commit(txn._txn)
	runtime.UnlockOSThread()
	if ret != SUCCESS {
		return errno(ret)
	}
	txn._txn = nil
	return nil
}
예제 #6
0
파일: txn.go 프로젝트: hyc/gomdb
func (txn *Txn) Commit() error {
	ret := C.mdb_txn_commit(txn._txn)
	runtime.UnlockOSThread()
	return errno(ret)
}
예제 #7
0
파일: txn.go 프로젝트: pasinskim/mender
func (txn *Txn) commit() error {
	ret := C.mdb_txn_commit(txn._txn)
	txn._txn = nil
	return operrno("mdb_txn_commit", ret)
}