You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-24 14:20:59 +03:00
MCOL-4328 There is a new option in both cpimport and cpimport.bin to asign
an owner for all data files created by cpimport The patch consists of two parts: cpimport.bin changes, cpimport splitter changes cpimport.bin computes uid_t and gid_t early and propagates it down the stack where MCS creates data files
This commit is contained in:
@@ -215,6 +215,16 @@ int Dctnry::createDctnry( const OID& dctnryOID, int colWidth,
|
||||
|
||||
// if obsolete file exists, "w+b" will truncate and write over
|
||||
m_dFile = createDctnryFile(fileName, colWidth, "w+b", DEFAULT_BUFSIZ);
|
||||
|
||||
{
|
||||
// We presume the path will contain /
|
||||
std::string filePath(fileName);
|
||||
std::ostringstream ossChown;
|
||||
if (chownDataFileDir(ossChown, filePath))
|
||||
{
|
||||
return ERR_FILE_CHOWN;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -248,7 +248,6 @@ public:
|
||||
return createDctnryFile(name, width, mode, ioBuffSize);
|
||||
}
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Protected members
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user