DtMmdb: check if the log file exists before deleting to avoid
crash.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user