From d0945f4638f342daf4c84ab5a03449137435dd36 Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 30 Nov 2022 03:08:50 +0000 Subject: Doc and logging text tweaks in the OPFS async proxy and test app. FossilOrigin-Name: 7ce8608e221924d2c7067687eb6eef0f3cab181d5b4132e55a67d8514b6ce94b --- ext/wasm/api/sqlite3-opfs-async-proxy.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'ext/wasm/api/sqlite3-opfs-async-proxy.js') 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; -- cgit v1.2.3