store: fix move ctor

indexer_ is holding a ptr to the _old_ store; clear it so it gets
regenerated.
This commit is contained in:
Dirk-Jan C. Binnema 2022-10-26 21:51:53 +03:00
parent 4924daef6c
commit f333209287
1 changed files with 5 additions and 1 deletions

View File

@ -351,7 +351,11 @@ Store::Store(const std::string& path,
{
}
Store::Store(Store&&) = default;
Store::Store(Store&& other)
{
priv_ = std::move(other.priv_);
priv_->indexer_.reset();
}
Store::~Store() = default;