You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-10 22:42:30 +03:00
Fixed a bug in new ownership stuff. Not sure why this didn't happen
everytime. When called through the dtor, a fcns param is a reference to a thing it deletes, so segfault. But only sometimes.
This commit is contained in:
@@ -142,7 +142,6 @@ void Ownership::releaseOwnership(const bf::path &p, bool isDtor)
|
||||
logger->log(LOG_DEBUG, "Ownership::releaseOwnership(): told to disown %s, but do not own it", p.string().c_str());
|
||||
return;
|
||||
}
|
||||
ownedPrefixes.erase(it);
|
||||
|
||||
if (isDtor)
|
||||
{
|
||||
@@ -152,6 +151,8 @@ void Ownership::releaseOwnership(const bf::path &p, bool isDtor)
|
||||
DELETE(p, "FLUSHING");
|
||||
return;
|
||||
}
|
||||
else
|
||||
ownedPrefixes.erase(it);
|
||||
|
||||
s.unlock();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user