0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 16:33:53 +01:00

ircd::db: Move this out of the ptr's destructor.

This commit is contained in:
Jason Volk 2018-01-17 21:44:56 -08:00
parent e5a50a0b79
commit 09e32dce56

View file

@ -430,11 +430,6 @@ try
{
ptr, [this](rocksdb::DB *const d) noexcept
{
sync(*this);
this->columns.clear();
log.debug("'%s': closed columns; synchronized with hardware.",
this->name);
const auto sequence
{
d->GetLatestSequenceNumber()
@ -480,6 +475,11 @@ noexcept
name,
path,
background_errors);
sync(*this);
this->columns.clear();
log.debug("'%s': closed columns; synchronized with hardware.",
this->name);
}
void