antirez 75987431f0 AOF: fix a bug that may prevent proper fsyncing when fsync=always.
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.
2018-02-27 13:06:42 +01:00
..
2016-04-25 16:49:57 +03:00
2016-06-07 16:46:00 -04:00
2017-08-08 17:45:51 +08:00
2016-04-04 08:50:58 +02:00
2015-10-01 13:02:25 +02:00
2017-12-05 15:38:03 +01:00
2017-12-05 15:38:03 +01:00
2017-12-05 15:38:03 +01:00
2016-07-27 11:34:25 +02:00
2016-07-27 11:34:25 +02:00
2016-06-14 14:45:28 +02:00
2018-02-14 00:12:13 +09:00
2014-08-08 10:05:32 +02:00
2017-01-18 17:12:07 +01:00
2015-04-27 12:07:49 +02:00
2015-04-27 12:07:49 +02:00
2017-02-21 17:07:28 +01:00
2014-07-02 16:31:22 +02:00
2017-12-05 17:42:19 +08:00
2017-01-11 19:24:19 +02:00