unlock on log failure

This commit is contained in:
Girish Ramakrishnan
2018-11-19 21:12:58 -08:00
parent 14dff27d45
commit b47a146c2b
+1
View File
@@ -937,6 +937,7 @@ function startBackupTask(auditSource, callback) {
let fd = safe.fs.openSync(paths.BACKUP_LOG_FILE, 'a'); // will autoclose
if (!fd) {
debug('startBackupTask: unable to get log filedescriptor %s', safe.error.message);
locker.unlock(locker.OP_FULL_BACKUP);
return callback(safe.error);
}