[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: commit vs abort



Sam Dave wrote:
> Hi,
> What is the difference between mdb_txn_commit() and mdb_txn_abort() for read-only transactions?
> Thank you,
> Samuel

If you opened any DBIs in the txn, txn_commit will make them available in the environment,
txn_abort will not.

-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/