overte-HifiExperiments/domain-server
Matt Hardcastle f4b6db5def Use QSaveFile when persisting domain settings to disk
Prior to this change the `DomainServerSettingsManager::persistToFile()`
method wrote directly to the settings file. It also did limited error
checking. These limitations could lead to a situation where a crashed
domain-server process, a file system backup, a settings file copy, or a
hardware error could corrupt the setting file.

This change swaps the `QFile` class for `QSaveFile` and uses its atomic
saving features, which writes the changes to the settings file to a file
in the same directory as the settings file and then does a rename to
replace the original. If the rename, or any of the file operations, fail
the original settings file remains in place.
2019-01-02 10:03:07 -08:00
..
resources Merge pull request #14450 from birarda/bug/case-insensitive-paths 2018-12-07 13:59:49 -08:00
src Use QSaveFile when persisting domain settings to disk 2019-01-02 10:03:07 -08:00
CMakeLists.txt Vcpkg migration 2018-11-08 12:28:06 -08:00