1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Rename the new opfs-sahpool init-retry flag to the suitably descriptive, and suitably onerous, forceReinitIfPreviouslyFailed, based on feedback.

FossilOrigin-Name: c9f0a6090258534a3d81066df5610229183a8457fc60d5034b4b94d9a29796e4
This commit is contained in:
stephan
2024-07-13 00:55:55 +00:00
parent 8ee747dda5
commit f7623a0871
4 changed files with 14 additions and 13 deletions

View File

@ -103,7 +103,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
/* Logging verbosity 3+ == everything, 2 == warnings+errors, 1 ==
errors only. */
verbosity: 2,
forceReinitIfFailed: false
forceReinitIfPreviouslyFailed: false
});
/** Logging routines, from most to least serious. */
@ -1080,7 +1080,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
then a directory name is synthesized from the `name` option.
- `forceReinitIfFailed`: (default=`false`) Is a fallback option
- `forceReinitIfPreviouslyFailed`: (default=`false`) Is a fallback option
to assist in working around certain flaky environments which may
mysteriously fail to permit access to OPFS sync access handles on
an initial attempt but permit it on a second attemp. This option
@ -1231,7 +1231,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
return p;
}catch(e){
//log("installOpfsSAHPoolVfs() got cached failure",options,vfsName,e);
if( options.forceReinitIfFailed ){
if( options.forceReinitIfPreviouslyFailed ){
delete initPromises[vfsName];
/* Fall through and try again. */
}else{