From 9abc4868d6df5e81e4799ccabb4824cdfee90945 Mon Sep 17 00:00:00 2001 From: "J. Scott Branson" <18340247+jscottbranson@users.noreply.github.com> Date: Sat, 14 Sep 2024 14:38:25 -0400 Subject: [PATCH] Update SQLite3 max_page_count to match current defaults (#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 #5102 --- src/ripple/app/main/DBInit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/app/main/DBInit.h b/src/ripple/app/main/DBInit.h index 3d2f42717b..43b29312e6 100644 --- a/src/ripple/app/main/DBInit.h +++ b/src/ripple/app/main/DBInit.h @@ -77,7 +77,7 @@ inline constexpr auto TxDBName{"transaction.db"}; inline constexpr std::array TxDBPragma { "PRAGMA page_size=4096;", "PRAGMA journal_size_limit=1582080;", - "PRAGMA max_page_count=2147483646;", + "PRAGMA max_page_count=4294967294;", #if (ULONG_MAX > UINT_MAX) && !defined(NO_SQLITE_MMAP) "PRAGMA mmap_size=17179869184;"