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

Options to build with TSAN, UBSAN and skipping smoke (#2826)

This commit is contained in:
Leonid Fedorov
2023-04-21 21:24:48 +03:00
committed by GitHub
parent 9729d7cfba
commit 3ce19abdae
7 changed files with 115 additions and 32 deletions

View File

@ -151,6 +151,7 @@ const int ERR_FILE_FLUSH = ERR_FILEBASE + 18; // Error flushing file
const int ERR_FILE_GLOBBING = ERR_FILEBASE + 19; // Error globbing a file name
const int ERR_FILE_EOF = ERR_FILEBASE + 20; // EOF
const int ERR_FILE_CHOWN = ERR_FILEBASE + 21; // EOF
const int ERR_INTERNAL = ERR_FILEBASE + 22; // EOF
//--------------------------------------------------------------------------
// XML level error

View File

@ -2105,6 +2105,11 @@ int FileOp::oid2FileName(FID fid, char* fullFileName, bool bCreateDir, uint16_t
RETURN_ON_ERROR((Convertor::oid2FileName(fid, tempFileName, dbDir, partition, segment)));
// see if file exists in specified DBRoot; return if found
if (fullFileName == nullptr)
{
return ERR_INTERNAL;
}
if (dbRoot > 0)
{
sprintf(fullFileName, "%s/%s", Config::getDBRootByNum(dbRoot).c_str(), tempFileName);
@ -2220,6 +2225,12 @@ int FileOp::oid2DirName(FID fid, char* oidDirName) const
return NO_ERROR;
}
if (oidDirName == nullptr)
{
return ERR_INTERNAL;
}
RETURN_ON_ERROR((Convertor::oid2FileName(fid, tempFileName, dbDir, 0, 0)));
// Now try to find the directory in each of the DBRoots.