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:
parent
e5a50a0b79
commit
09e32dce56
1 changed files with 5 additions and 5 deletions
10
ircd/db.cc
10
ircd/db.cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue