Skip to content

IDBMirrorVFS.jTruncate() doesn't open a transaction #233

@rhashimoto

Description

@rhashimoto

As reported here by @subframe7536, a direct call to IDBMirrorVFS.jTruncate() without a preceding call to jWrite() fails because there is no active transaction. This isn't expected to be encountered when the VFS is called from SQLite because the updated page count will be written to page 0, but the file demo does make a call this way.

The proposed fix is to create an active transaction in jTruncate() as well as jWrite().

This bug is also present in OPFSPermutedVFS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions