1
0
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:
Patrick LeBlanc
2018-11-15 16:50:45 -06:00
parent 69046633d2
commit 5559674208
2 changed files with 2 additions and 2 deletions

View File

@ -2586,7 +2586,7 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName,
if (line[0] == '/') // handle absolute paths (saved by an old version) if (line[0] == '/') // handle absolute paths (saved by an old version)
dbrmFile = line; dbrmFile = line;
else else
dbrmFile = DBRMroot + line; dbrmFile = DBRMroot.substr(0, DBRMroot.find_last_of('/') + 1) + line;
// if ( !gOAMParentModuleFlag ) { // if ( !gOAMParentModuleFlag ) {

View File

@ -101,7 +101,7 @@ int main (int argc, char** argv)
prefix += '\n'; prefix += '\n';
#endif #endif
// for MCOL-1558. Make the _current file relative to DBRMRoot // 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()); currentFile->write(relative.c_str(), relative.length());
} }
catch (exception& e) catch (exception& e)