Skip to content
Snippets Groups Projects
Commit aa1b6226 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't backup the dsts.ini file when saving changes, not needed any more

Root-caused this problem to read() failures which are now caught and logged
rather than zeroing out the statistics fields.
parent 42e9eb8b
Branches
Tags
No related merge requests found
Pipeline #7022 passed
...@@ -70,10 +70,6 @@ FILE* fopen_dstats(scfg_t* cfg, uint node, bool for_write) ...@@ -70,10 +70,6 @@ FILE* fopen_dstats(scfg_t* cfg, uint node, bool for_write)
char path[MAX_PATH+1]; char path[MAX_PATH+1];
dstats_fname(cfg, node, path, sizeof(path)); dstats_fname(cfg, node, path, sizeof(path));
#ifdef _DEBUG
if(for_write)
backup(path, 99, /* rename: */false);
#endif
return fnopen(NULL, path, for_write ? O_CREAT|O_RDWR : O_RDONLY); return fnopen(NULL, path, for_write ? O_CREAT|O_RDWR : O_RDONLY);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment