Uri Shachar 8dbe91f031 Fix config rewrite file handling to make it really atomic (#7824)
Make sure we handle short writes correctly, sync to disk after writing  and use
rename to make sure the replacement is actually atomic.
In any case of failure old configuration will remain in place.

Also, add some additional logging to make it easier to diagnose rewrite problems.
2020-09-25 12:55:45 +03:00
..
2019-11-20 20:39:04 -05:00
2020-05-05 10:20:48 +02:00
2020-04-24 17:00:03 -07:00
2020-04-24 17:11:21 -07:00
2020-04-24 17:11:21 -07:00
2020-09-24 08:59:14 +03:00
2018-07-03 18:19:46 +02:00
2019-02-24 21:38:15 +01:00
2020-06-12 12:16:19 +02:00
2019-10-24 14:24:55 +03:00
2020-05-05 23:35:08 -04:00
2019-11-19 17:23:47 +08:00
2018-07-03 18:19:46 +02:00
2019-10-02 11:30:20 +02:00
2020-07-24 14:40:19 +08:00
2020-02-22 11:38:51 -05:00
2020-05-12 21:21:22 +01:00
2018-11-11 18:49:55 +00:00
2020-09-24 08:59:14 +03:00
2020-07-21 08:13:05 +03:00