mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
Fixed deadlock causing 100% CPU spike
I have seen this issue appear online a few times, the CPU locks at 100% when throwing a bad reference. This happened because the local ‘lock’ used by the rolodex file loader, was not releasing correctly when a lookup occurred, that could not be found via a rolodex file lookup. https://github.com/daveshanley/vacuum/issues/393 Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -152,6 +152,7 @@ func (l *LocalFS) Open(name string) (fs.File, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
l.processingFiles.Delete(name)
|
||||||
return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
|
return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user