diff options
author | stephan <stephan@noemail.net> | 2023-05-01 15:15:11 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-05-01 15:15:11 +0000 |
commit | d45bbbb05c5f5f497892d3f67cc80ede35aa072e (patch) | |
tree | 840fdcf400fa6e41847f9426bbbb5613d1c4f831 /ext/wasm/api | |
parent | b5fab681621cfb7279adf1a86945cc3dfe45690b (diff) | |
download | sqlite-d45bbbb05c5f5f497892d3f67cc80ede35aa072e.tar.gz sqlite-d45bbbb05c5f5f497892d3f67cc80ede35aa072e.zip |
Implement full xSync() for the OPFS VFS. The previous implementation was not correct for journal files. Reported in [forum:647d2f811dbc2dfe|forum post 647d2f811dbc2dfe].
FossilOrigin-Name: a371374148a2874be6e48890781aa5952229056b146a50fa4d035693341c5636
Diffstat (limited to 'ext/wasm/api')
-rw-r--r-- | ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js index 13747ffec..e74279a55 100644 --- a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js +++ b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js @@ -780,7 +780,10 @@ const installOpfsVfs = function callee(options){ }, xSync: function(pFile,flags){ ++metrics.xSync.count; - return 0; // impl'd in xFileControl() + mTimeStart('xSync'); + const rc = opRun('xSync', pFile, flags); + mTimeEnd(); + return rc; }, xTruncate: function(pFile,sz64){ mTimeStart('xTruncate'); |