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:
@ -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');
|
||||
|
Reference in New Issue
Block a user