Skip to content

Commit c2ef89e

Browse files
Adjust default SQLite page_size to 4096 (match upstream since 2016)
1 parent 53b7359 commit c2ef89e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlcipher/src/main/java/net/zetetic/database/sqlcipher/SQLiteGlobal.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public final class SQLiteGlobal {
4141
private static final String TAG = "SQLiteGlobal";
4242

4343
private static final Object sLock = new Object();
44-
private static int sDefaultPageSize;
44+
private static int sDefaultPageSize = 4096;
4545

4646
private static native int nativeReleaseMemory();
4747

@@ -68,7 +68,7 @@ public static int getDefaultPageSize() {
6868
// wrong that we just let the IllegalArgumentException propagate.
6969
sDefaultPageSize = new StatFs("/data").getBlockSize();
7070
}
71-
return 1024;
71+
return 4096;
7272
}
7373
}
7474

0 commit comments

Comments
 (0)