1
0
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:
Patrick LeBlanc
2019-07-31 14:16:50 -05:00
parent dfbac2d2a5
commit 05e636b4a5

View File

@@ -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();