[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: commit vs abort
- To: Sam Dave <samdave@tuta.io>, Openldap Technical <openldap-technical@openldap.org>
- Subject: Re: commit vs abort
- From: Howard Chu <hyc@symas.com>
- Date: Sat, 29 Feb 2020 17:13:57 +0000
- Dkim-filter: OpenDKIM Filter v2.10.3 zmcc-2-mta-1.zmailcloud.com 700B3CF303
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=symas.com; s=37C7994C-28CA-11EA-A30F-68F90BB9D764; t=1582996440; bh=GWdr1N7+JhL4r+FcAO0kB1E+gt0vcn3XuXFiMN+whNE=; h=To:From:Message-ID:Date:MIME-Version; b=r9ghoYesDSPb+BsA7dkR0lGwMojXQUZqqeykDg89mUGrMvo9O4+vNxahWLsAqV0QA F2aTRhYNgTlqws+L5clmWYTgwNACTQItM6yM9ZX5uymwWiWyt3gsXgHSbAg02Ihzva pAUxdIodajB9QvH5zQAHJZ1AcFMgA5cV4HMx0cOOvm8MuCuImSKQuAZBEo5KvZ5tdU zNyg/3RNowK158q4L6BFJ4Vne4sV7GqvisKNULKqz+9rvcG6v9zf3ClV7DZwVOtoQw 2mND6ajXXBGqNOwya9zx5B5QeDzlNuIt6xTUlyrqZKSW2OkS9IgqqIsh0nV+JiS+rQ ya2acNQPuj3Lg==
- In-reply-to: <M1CgThx--3-2@tuta.io>
- References: <M1CgThx--3-2@tuta.io>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53
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/