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

Re: (ITS#8191) mdb_txn_commit(empty txn) does not sync



h.b.furuseth@usit.uio.no wrote:
> On 07/07/15 21:44, h.b.furuseth@usit.uio.no wrote:
>> My feeling is that this is a quirk the user should not need to
>> know about, and it's cleaner to sy r rather than to document it.
>
> ...cleaner to sync rather than...

The doc should say that committing an empty txn is a no-op. If you want to do 
a sync without writing data, use mdb_env_sync() yourself.

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