1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

Lock condition possible exposed by unit_test.

This commit is contained in:
benthompson15
2019-08-21 16:00:57 -05:00
parent 83789d7180
commit 050f8c0be5

View File

@@ -135,6 +135,7 @@ MetadataFile::MetadataFile(const boost::filesystem::path &filename)
mVersion = 1;
mRevision = 1;
makeEmptyJsonTree();
s.unlock();
writeMetadata();
}
}
@@ -278,7 +279,7 @@ vector<metadataObject> MetadataFile::metadataRead(off_t offset, size_t length) c
foundLen += i->length;
++i;
}
assert(!(offset == 0 && length == getLength()) || (ret.size() == mObjects.size()));
return ret;
}