mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Add the (undocumented) SQLITE_DEFAULT_UNIX_VFS compile-time option.
FossilOrigin-Name: 49828bdec5f926cd18a069d39a5db0b1e1f3528a2affcfbaa1cf7b98aca51b3b
This commit is contained in:
@@ -8049,7 +8049,12 @@ int sqlite3_os_init(void){
|
||||
|
||||
/* Register all VFSes defined in the aVfs[] array */
|
||||
for(i=0; i<(sizeof(aVfs)/sizeof(sqlite3_vfs)); i++){
|
||||
#ifdef SQLITE_DEFAULT_UNIX_VFS
|
||||
sqlite3_vfs_register(&aVfs[i],
|
||||
0==strcmp(aVfs[i].zName,SQLITE_DEFAULT_UNIX_VFS));
|
||||
#else
|
||||
sqlite3_vfs_register(&aVfs[i], i==0);
|
||||
#endif
|
||||
}
|
||||
unixBigLock = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user