Loading core/jni/android_database_SQLiteDatabase.cpp +12 −10 Original line number Diff line number Diff line Loading @@ -126,7 +126,12 @@ static void dbopen(JNIEnv* env, jobject object, jstring pathString, jint flags) // Configure databases to run in WAL mode. err = sqlite3_exec(handle,"PRAGMA journal_mode = WAL;", NULL, NULL,&zErrMsg); if (SQLITE_OK == err) { if (SQLITE_OK != err) { LOGE("sqlite3_exec to set journal_mode = WAL failed\n"); throw_sqlite3_exception(env, handle); goto done; } // Set autocheckpoint = 100 pages err = sqlite3_wal_autocheckpoint(handle, 100); Loading @@ -135,9 +140,6 @@ static void dbopen(JNIEnv* env, jobject object, jstring pathString, jint flags) throw_sqlite3_exception(env, handle); goto done; } } else { LOGE("sqlite3_exec to set journal_mode = WAL failed\n"); } // The soft heap limit prevents the page cache allocations from growing // beyond the given limit, no matter what the max page cache sizes are Loading Loading
core/jni/android_database_SQLiteDatabase.cpp +12 −10 Original line number Diff line number Diff line Loading @@ -126,7 +126,12 @@ static void dbopen(JNIEnv* env, jobject object, jstring pathString, jint flags) // Configure databases to run in WAL mode. err = sqlite3_exec(handle,"PRAGMA journal_mode = WAL;", NULL, NULL,&zErrMsg); if (SQLITE_OK == err) { if (SQLITE_OK != err) { LOGE("sqlite3_exec to set journal_mode = WAL failed\n"); throw_sqlite3_exception(env, handle); goto done; } // Set autocheckpoint = 100 pages err = sqlite3_wal_autocheckpoint(handle, 100); Loading @@ -135,9 +140,6 @@ static void dbopen(JNIEnv* env, jobject object, jstring pathString, jint flags) throw_sqlite3_exception(env, handle); goto done; } } else { LOGE("sqlite3_exec to set journal_mode = WAL failed\n"); } // The soft heap limit prevents the page cache allocations from growing // beyond the given limit, no matter what the max page cache sizes are Loading