DtMmdb: check if the log file exists before deleting to avoid

crash.
This commit is contained in:
Liang Chang 2021-11-16 02:32:10 +08:00
parent 4ddd76449c
commit dd4431719f
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ debug(cerr, int(log_store));
if ( status == DISABLED && log_store ) {
delete log_store;
del_file(form("%s.log", name), path);
if ( exist_file(form("%s.log", name), path) )
del_file(form("%s.log", name), path);
}
delete log_index;
}