BarackYoung

Results 4 comments of BarackYoung

> you can use config `appendfsync always` to fsync after every write to the append only log. however, there is no guarantee that data won't be lost, such as hardware...

> @BarackYoung no database can guarantee that it won't lose data, only that it will lose as little as possible, as I suggested using `appendfsync always`, which writes to the...

> If the premise is `when the command or sql execute finished and return success`, `appendfsync always` already guarantees that the data will be writeen to the disk corectlly. Without...

Yes, that’s exactly how it works.I see it in the code that redis will flush data to disk every eventloop. And reply in the next eventloop.So, if you received a...