0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 16:04:15 +01:00

ircd::db: Verify SST checksums on db open.

This commit is contained in:
Jason Volk 2018-04-26 16:48:35 -07:00
parent 94439a334e
commit 93ca1448d1

View file

@ -597,6 +597,13 @@ try
dbs, dbs.emplace(string_view{this->name}, this).first
}
{
throw_on_error
{
#ifdef RB_DEBUG
d->VerifyChecksum() //TODO: worth doing this for real here?
#endif
};
log.info("'%s': Opened database @ `%s' with %zu columns at sequence number %lu.",
this->name,
path,