1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

A little cleanup & added a comment to a change made earlier.

This commit is contained in:
Patrick LeBlanc
2019-08-16 16:41:48 -05:00
parent 815a0fda9f
commit 2c2cb219f2

View File

@ -192,7 +192,6 @@ void Ownership::releaseOwnership(const bf::path &p, bool isDtor)
void Ownership::_takeOwnership(const bf::path &p)
{
logger->log(LOG_DEBUG, "Ownership: taking ownership of %s", p.string().c_str());
//bf::create_directories(metadataPrefix/p);
DELETE(p, "FLUSHING");
DELETE(p, "REQUEST_TRANSFER");
// TODO: need to consider errors taking ownership
@ -206,7 +205,8 @@ void Ownership::_takeOwnership(const bf::path &p)
void Ownership::takeOwnership(const bf::path &p)
{
if (!bf::is_directory(metadataPrefix/p))
// If the prefix doesn't exist, ownership isn't possible yet.
if (!bf::is_directory(metadataPrefix/p))
return;
boost::unique_lock<boost::mutex> s(mutex);