Skip to content

Commit

Permalink
Merge branch 'main' into chirag-skipQueryLog
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragsalian committed Jun 7, 2024
2 parents 3270418 + b2adefe commit 0736d50
Show file tree
Hide file tree
Showing 7 changed files with 398 additions and 177 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
Loading

0 comments on commit 0736d50

Please sign in to comment.