store: fix move ctor
indexer_ is holding a ptr to the _old_ store; clear it so it gets regenerated.
This commit is contained in:
@ -338,7 +338,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;
|
Store::~Store() = default;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user