[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openldap-devel
Subject:    Re: ext3/ext4 fsync hack
From:       Hallvard Breien Furuseth <h.b.furuseth () usit ! uio ! no>
Date:       2015-01-06 14:40:32
Message-ID: 54ABF3E0.5080509 () usit ! uio ! no
[Download RAW message or body]

Sorry, forgot this one.

On 01/06/2015 03:18 PM, Howard Chu wrote:
> Hallvard Breien Furuseth wrote:
>> Another issue: After an MDB_NOSYNC commit, mdb_env_sync()
>> only fdatasync()s.  It does not know when the file grew.
>
> I suppose we can change the FORCE flag to also cause fsync() to be used.

Insufficient if the user commits with MDB_NOSYNC (maybe when creating
the DB), then turns off MDB_NOSYNC and does mdb_env_sync(env, 0).
Or another process without MDB_NOSYNC doing mdb_env_sync(env, 0).

The lockfile could track what has been synced how, though.
Except it won't know at init, so if someone does a lot of
<open env, commit, close env> they'll end up fsync'ing each time.

-- 
Hallvard

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic