Skip to content

Commit

Permalink
[fixup] bad commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Sep 17, 2024
1 parent 6c55b61 commit 2dd7fe5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/xrpld/core/detail/DatabaseCon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,14 @@ setup_DatabaseCon(Config const& c, std::optional<beast::Journal> j)
{
auto& s = c.section("sqlite");
set(journal_size_limit, "journal_size_limit", s);
set(page_size, "page_size", s);
if (!isPageSizeValid(page_size))
Throw<std::runtime_error>(
"Invalid page_size. Must be between 512 and 65536.");

if (!isPageSizePowerOfTwo(page_size))
Throw<std::runtime_error>(
"Invalid page_size. Must be a power of 2.");

set(page_size, "page_size", s);
}

setPragma(setup.txPragma[0], "page_size", page_size);
Expand Down

0 comments on commit 2dd7fe5

Please sign in to comment.