mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-06 00:06:06 -04:00
Add early-return guards to getHeaders, getIndex, getManifest, and updateCachedAt when the DB has been closed. This prevents "statement has been finalized" errors when the process exit handler closes the DB while async operations are still in flight. Also change store controller close to flush (not close) the metadata DB, since the exit handler handles cleanup.