• antirez's avatar
    AOF: fix a bug that may prevent proper fsyncing when fsync=always. · b2e4aad9
    antirez authored
    In case the write handler is already installed, it could happen that we
    serve the reply of a query in the same event loop cycle we received it,
    preventing beforeSleep() from guaranteeing that we do the AOF fsync
    before sending the reply to the client.
    
    The AE_BARRIER mechanism, introduced in a previous commit, prevents this
    problem. This commit makes actual use of this new feature to fix the
    bug.
    b2e4aad9
networking.c 75.6 KB