aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-opfs-async-proxy.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-11-30 03:08:50 +0000
committerstephan <stephan@noemail.net>2022-11-30 03:08:50 +0000
commitd0945f4638f342daf4c84ab5a03449137435dd36 (patch)
tree925a1bed2d5a70d38b05e5254b55ca00e93f8bab /ext/wasm/api/sqlite3-opfs-async-proxy.js
parent72ee096775423c14ca340a1aee751d505d686557 (diff)
downloadsqlite-d0945f4638f342daf4c84ab5a03449137435dd36.tar.gz
sqlite-d0945f4638f342daf4c84ab5a03449137435dd36.zip
Doc and logging text tweaks in the OPFS async proxy and test app.
FossilOrigin-Name: 7ce8608e221924d2c7067687eb6eef0f3cab181d5b4132e55a67d8514b6ce94b
Diffstat (limited to 'ext/wasm/api/sqlite3-opfs-async-proxy.js')
-rw-r--r--ext/wasm/api/sqlite3-opfs-async-proxy.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/ext/wasm/api/sqlite3-opfs-async-proxy.js b/ext/wasm/api/sqlite3-opfs-async-proxy.js
index a80eeb290..da75f139c 100644
--- a/ext/wasm/api/sqlite3-opfs-async-proxy.js
+++ b/ext/wasm/api/sqlite3-opfs-async-proxy.js
@@ -287,11 +287,12 @@ const installAsyncProxy = function(self){
handle object (which must be a valid handle object, as created by
xOpen()), lazily opening it if needed.
- In order to help alleviate cross-tab contention for a dabase,
- if an exception is thrown while acquiring the handle, this routine
- will wait briefly and try again, up to 3 times. If acquisition
- still fails at that point it will give up and propagate the
- exception.
+ In order to help alleviate cross-tab contention for a dabase, if
+ an exception is thrown while acquiring the handle, this routine
+ will wait briefly and try again, up to some fixed number of
+ times. If acquisition still fails at that point it will give up
+ and propagate the exception. Client-level code will see that as
+ an I/O error.
*/
const getSyncHandle = async (fh,opName)=>{
if(!fh.syncHandle){
@@ -323,7 +324,7 @@ const installAsyncProxy = function(self){
'in',performance.now() - t,'ms');
if(!fh.xLock){
__implicitLocks.add(fh.fid);
- log("Auto-locked for",opName+"()",fh.fid,fh.filenameAbs);
+ log("Acquired implicit lock for",opName+"()",fh.fid,fh.filenameAbs);
}
}
return fh.syncHandle;