Files
heritrix3/commons/src
Alex Osborne f4280012ae BdbModule: Fix resource leak on job teardown if sync() throws
This change ensures that close() is always called by moving sync() to a
separate try-block.

Often when a BDB error occurs it causes all subsequent operations
including sync() also throw exceptions. Since we were calling sync()
and close() in the same try-block, sync() throwing would prevent close()
from ever being called and thus leak file handles and BDB worker
threads.
2023-01-23 14:47:07 +09:00
..