1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

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
This commit is contained in:
stephan
2023-05-01 15:15:11 +00:00
parent b5fab68162
commit d45bbbb05c
3 changed files with 12 additions and 9 deletions

View File

@ -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');