From: stephan Date: Fri, 14 Oct 2022 13:26:18 +0000 (+0000) Subject: Remove a resolved TODO comment. X-Git-Tag: version-3.40.0~162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e771c0f077a6a9fad6e560559edb3f501c3892e;p=thirdparty%2Fsqlite.git Remove a resolved TODO comment. FossilOrigin-Name: 32fd4ac382f774189ac34f6fff80e55e6e56dd2aa67b0db88d5a88324f17f6ff --- diff --git a/ext/wasm/sqlite3-opfs-async-proxy.js b/ext/wasm/sqlite3-opfs-async-proxy.js index fd4c7f2b80..d261dd354c 100644 --- a/ext/wasm/sqlite3-opfs-async-proxy.js +++ b/ext/wasm/sqlite3-opfs-async-proxy.js @@ -25,13 +25,6 @@ access to the sqlite3 JS/WASM bits, so any bits which it needs (most notably SQLITE_xxx integer codes) have to be imported into it via an initialization process. - - Potential TODOs: - - - When idle for "a long time", close the sync access handle in order - to release the lock, then re-open it on demand. Similarly, delay - fetching of the sync access handle until we need it. The intent - would be to help multi-tab access to a db avoid locking issues. */ 'use strict'; const toss = function(...args){throw new Error(args.join(' '))}; @@ -42,8 +35,6 @@ if(self.window === self){ toss("This API requires navigator.storage.getDirectory."); } -//warn("This file is very much experimental and under construction.",self.location.pathname); - /** Will hold state copied to this object from the syncronous side of this API. @@ -161,7 +152,7 @@ const getSyncHandle = async (fh)=>{ try { //if(1===i) toss("Just testing."); //TODO? A config option which tells it to throw here - //randomly every now and then. + //randomly every now and then, for testing purposes. fh.syncHandle = await fh.fileHandle.createSyncAccessHandle(); break; }catch(e){ @@ -170,7 +161,7 @@ const getSyncHandle = async (fh)=>{ "attempts failed. ",fh.filenameAbs, ":", e.message); throw e; } - error("Error getting sync handle. Waiting",ms, + warn("Error getting sync handle. Waiting",ms, "ms and trying again.",fh.filenameAbs,e); Atomics.wait(state.sabOPView, state.opIds.xSleep, 0, ms); } diff --git a/manifest b/manifest index 13be78b776..2d787a777f 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Move\sthe\srest\sof\stesting1.js\sinto\stester1.js\sand\seliminate\sthe\sdependency\son\sjaccwabyt_test.c.\sExtend\sthe\slist\sof\sdefault\sconfig-related\s#defines\sin\ssqlite3-wasm.c\sand\sreorganize\sthem\sfor\smaintainability. -D 2022-10-13T16:48:35.302 +C Remove\sa\sresolved\sTODO\scomment. +D 2022-10-14T13:26:18.756 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 @@ -519,7 +519,7 @@ F ext/wasm/speedtest1.html e4cb5d722b494104fc1249e7c008ca018f820a784833c51004c95 F ext/wasm/split-speedtest1-script.sh a3e271938d4d14ee49105eb05567c6a69ba4c1f1293583ad5af0cd3a3779e205 x F ext/wasm/sql/000-mandelbrot.sql 775337a4b80938ac8146aedf88808282f04d02d983d82675bd63d9c2d97a15f0 F ext/wasm/sql/001-sudoku.sql 35b7cb7239ba5d5f193bc05ec379bcf66891bce6f2a5b3879f2f78d0917299b5 -F ext/wasm/sqlite3-opfs-async-proxy.js 40fc1f779e18e08b31404ef832381ffd36b9d11447007aaf96223198324e4467 +F ext/wasm/sqlite3-opfs-async-proxy.js e552d9290509644929cd7bfde3381a0eac85d17b4d82dbb11e86fae5336215b6 F ext/wasm/sqlite3-worker1-promiser.js 307d7837420ca6a9d3780dfc81194f1c0715637e6d9540e935514086b96913d8 F ext/wasm/sqlite3-worker1.js 466e9bd39409ab03f3e00999887aaffc11e95b416e2689596e3d7f1516673fdf F ext/wasm/test-opfs-vfs.html eb69dda21eb414b8f5e3f7c1cc0f774103cc9c0f87b2d28a33419e778abfbab5 @@ -2031,8 +2031,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 -P cb94350185f555c333b628ee846c47bcc9df5f76bb82de569b8322f30dbbe1bc -R 32dab828066657d904ede486bb592456 +P 4e2a8aff2dd4b6e148f45184e2523ebe47815257eca97fa3d32bcbf9625f0def +R 9e71573268d8509a62b15b73d008f5e9 U stephan -Z 3fd1b23c49b42c2df54d60ffd9b89d7f +Z fced5d49252f4340d2afc14fae1e4aa8 # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.uuid b/manifest.uuid index 7e72bfdd21..6ab0e1f14e 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -4e2a8aff2dd4b6e148f45184e2523ebe47815257eca97fa3d32bcbf9625f0def \ No newline at end of file +32fd4ac382f774189ac34f6fff80e55e6e56dd2aa67b0db88d5a88324f17f6ff \ No newline at end of file