Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OriginPrivateFileSystemVFS SQL_IOERR with journal_mode TRUNCATE or PERSIST #68

Closed
rhashimoto opened this issue Nov 26, 2022 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@rhashimoto
Copy link
Owner

If multiple connections are using the OriginPrivateFileSystemVFS with PRAGMA journal_mode TRUNCATE or PERSIST, an SQL_IOERR is likely to result. The problem is that in these modes multiple connections can open the journal file and OPFS access handles are exclusive. A workaround is not to use these modes with multiple connections.

This is not a high priority to fix right now. IDBBatchAtomicVFS is better in pretty much every way that matters to application writers - ease of integration, performance, maturity - so the OPFS VFS is mostly a proof of concept.

@rhashimoto rhashimoto added the bug Something isn't working label Nov 26, 2022
@rhashimoto rhashimoto added the wontfix This will not be worked on label Apr 20, 2023
@rhashimoto
Copy link
Owner Author

I'm becoming more and more confident that AccessHandlePoolVFS, with a shared connection if needed, is the best approach for an OPFS VFS. Given that, I'm marking this wontfix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant