Skip to content

Commit

Permalink
Merge pull request #1766 from Expensify/main
Browse files Browse the repository at this point in the history
Update expensify_prod branch
  • Loading branch information
rafecolton authored Jun 3, 2024
2 parents 241f588 + 1b961da commit 7f319d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bedrock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches: # this ignores tag pushes, and only looks at branches.
- '**'
release:
types: [prereleased]
types: [prereleased, published]
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
Expand Down
7 changes: 6 additions & 1 deletion BedrockServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,18 @@ void BedrockServer::sync()
workerThreads = 2;
}

size_t journalTables = workerThreads;
if (args.isSet("-journalTables")) {
journalTables = args.calcU64("-journalTables");
}

// Initialize the DB.
int64_t mmapSizeGB = args.isSet("-mmapSizeGB") ? stoll(args["-mmapSizeGB"]) : 0;

// We use fewer FDs on test machines that have other resource restrictions in place.

SINFO("Setting dbPool size to: " << _dbPoolSize);
_dbPool = make_shared<SQLitePool>(_dbPoolSize, args["-db"], args.calc("-cacheSize"), args.calc("-maxJournalSize"), workerThreads, args["-synchronous"], mmapSizeGB, args.isSet("-hctree"));
_dbPool = make_shared<SQLitePool>(_dbPoolSize, args["-db"], args.calc("-cacheSize"), args.calc("-maxJournalSize"), journalTables, args["-synchronous"], mmapSizeGB, args.isSet("-hctree"));
SQLite& db = _dbPool->getBase();

// Initialize the command processor.
Expand Down

0 comments on commit 7f319d7

Please sign in to comment.