0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-09 21:48:55 +02:00

ircd:Ⓜ️:homeserver: Add manual memtable flush after bootstrap.

This commit is contained in:
Jason Volk 2020-09-16 00:23:04 -07:00
parent ebef47f32d
commit 335a045d41

View file

@ -339,6 +339,15 @@ try
ctx::interruption_point();
}
// Manual flush of the memtables is required in case the user disabled the
// WAL (which is advised in the documentation). If this isn't run several
// thousand keys in memory will be dropped inconsistently between database
// columns. If WAL is enabled then it tidies the DB up just as well.
{
const bool blocking(true), allow_stall(true);
db::sort(*dbs::events, blocking, allow_stall);
}
log::notice
{
log, "Bootstrapped count:%zu retired:%zu in %s from `%s' in %s",