You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4328 MCS avoids chown() calls for files that are on S3
MCS now chowns created directories hierarchy not only files and immediate parent directories Minor changes to cpimport's help printout cpimport's -f option is now mandatory with mode 2
This commit is contained in:
@ -454,8 +454,12 @@ std::string RBMetaWriter::openMetaFile ( uint16_t dbRoot )
|
||||
|
||||
{
|
||||
std::ostringstream ossChown;
|
||||
if (chownFileDir(ossChown, tmpMetaFileName, bulkRollbackPath))
|
||||
idbdatafile::IDBFileSystem& fs = IDBPolicy::getFs(tmpMetaFileName.c_str());
|
||||
if (chownPath(ossChown, tmpMetaFileName, fs)
|
||||
|| chownPath(ossChown, bulkRollbackPath, fs))
|
||||
{
|
||||
throw WeException(ossChown.str(), ERR_FILE_CHOWN);
|
||||
}
|
||||
}
|
||||
|
||||
fMetaDataStream <<
|
||||
@ -1336,8 +1340,12 @@ int RBMetaWriter::writeHWMChunk(
|
||||
|
||||
{
|
||||
std::ostringstream ossChown;
|
||||
if (chownFileDir(ossChown, fileName, dirPath))
|
||||
idbdatafile::IDBFileSystem& fs = IDBPolicy::getFs(fileName.c_str());
|
||||
if (chownPath(ossChown, fileName, fs)
|
||||
|| chownPath(ossChown, dirPath, fs))
|
||||
{
|
||||
throw WeException(ossChown.str(), ERR_FILE_CHOWN);
|
||||
}
|
||||
}
|
||||
|
||||
return NO_ERROR;
|
||||
|
Reference in New Issue
Block a user