Skip to content

Commit 9abc486

Browse files
Update SQLite3 max_page_count to match current defaults (XRPLF#5114)
When rippled initiates a connection to SQLite3, rippled sends a "PRAGMA" statement defining the maximum number of pages allowed in the database. Update the max_page_count so it is consistent with the default for newer versions of SQLite3. Increasing max_page_count is critical for keeping full history servers online. Fix XRPLF#5102
1 parent 85214bd commit 9abc486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ripple/app/main/DBInit.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ inline constexpr auto TxDBName{"transaction.db"};
7777
inline constexpr std::array<char const*, 4> TxDBPragma
7878
{
7979
"PRAGMA page_size=4096;", "PRAGMA journal_size_limit=1582080;",
80-
"PRAGMA max_page_count=2147483646;",
80+
"PRAGMA max_page_count=4294967294;",
8181

8282
#if (ULONG_MAX > UINT_MAX) && !defined(NO_SQLITE_MMAP)
8383
"PRAGMA mmap_size=17179869184;"

0 commit comments

Comments
 (0)