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-1558. Got it working.
Fixed a couple off-by-one type errors constructing the new paths.
This commit is contained in:
@ -2586,7 +2586,7 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName,
|
||||
if (line[0] == '/') // handle absolute paths (saved by an old version)
|
||||
dbrmFile = line;
|
||||
else
|
||||
dbrmFile = DBRMroot + line;
|
||||
dbrmFile = DBRMroot.substr(0, DBRMroot.find_last_of('/') + 1) + line;
|
||||
|
||||
// if ( !gOAMParentModuleFlag ) {
|
||||
|
||||
|
@ -101,7 +101,7 @@ int main (int argc, char** argv)
|
||||
prefix += '\n';
|
||||
#endif
|
||||
// for MCOL-1558. Make the _current file relative to DBRMRoot
|
||||
string relative = prefix.substr(prefix.find_last_of('/'));
|
||||
string relative = prefix.substr(prefix.find_last_of('/') + 1);
|
||||
currentFile->write(relative.c_str(), relative.length());
|
||||
}
|
||||
catch (exception& e)
|
||||
|
Reference in New Issue
Block a user