1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-18 13:54:11 +03:00

Several fixes / improvements....

- normalized pathnames passed to IOC functions
 - fixed a race that could leave files orphaned in cloud storage
 - fixed a couple small things in Metadatafile
 - added metadata sanity checks to Sync fcns to detect truncation &
   deletion before they do work
This commit is contained in:
Patrick LeBlanc
2019-05-30 10:56:45 -05:00
parent b85030b164
commit 3fe2a4859c
5 changed files with 109 additions and 41 deletions

View File

@@ -54,7 +54,7 @@ class MetadataFile
void updateEntry(off_t offset, const std::string &newName, size_t newLength);
void updateEntryLength(off_t offset, size_t newLength);
metadataObject addMetadataObject(const char *filename, size_t length);
const metadataObject &getEntry(off_t offset);
bool getEntry(off_t offset, const metadataObject **out) const;
void removeEntry(off_t offset);
// TBD: this may have to go; there may be no use case where only the uuid needs to change.