File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1083,10 +1083,6 @@ class VFS : public SQLiteVFS::Wrapper {
1083
1083
if (unsafe) {
1084
1084
outer_db->exec (UNSAFE_PRAGMAS);
1085
1085
}
1086
- auto outer_cache_size = sqlite3_uri_int64 (zName, " outer_cache_size" , 0 );
1087
- if (outer_cache_size) {
1088
- outer_db->exec (" PRAGMA cache_size=" + std::to_string (outer_cache_size));
1089
- }
1090
1086
1091
1087
// check flags vs whether this appears to be a nested VFS database
1092
1088
bool is_outer_db = IsOuterDB (*outer_db);
@@ -1108,6 +1104,10 @@ class VFS : public SQLiteVFS::Wrapper {
1108
1104
txn.commit ();
1109
1105
}
1110
1106
1107
+ auto outer_cache_size = sqlite3_uri_int64 (zName, " outer_cache_size" , 0 );
1108
+ if (outer_cache_size) {
1109
+ outer_db->exec (" PRAGMA cache_size=" + std::to_string (outer_cache_size));
1110
+ }
1111
1111
auto threads = sqlite3_uri_int64 (zName, " threads" , 1 );
1112
1112
if (threads < 0 ) {
1113
1113
threads = sqlite3_int64 (std::thread::hardware_concurrency ()) - 1 ;
You can’t perform that action at this time.
0 commit comments