1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-553 Error if we can't set file limits

Especially for non-root installs. Otherwise we could be in for some pain
later...
This commit is contained in:
Andrew Hutchings
2017-02-08 17:13:30 +00:00
parent 4967c5a6d8
commit 739f61a1ef
3 changed files with 59 additions and 9 deletions

View File

@ -130,7 +130,26 @@ int main(int argc, char** argv)
idbdatafile::IDBPolicy::configIDBPolicy();
#endif
Config weConfig;
setupResources();
int err = setupResources();
switch (err)
{
case -1:
case -3:
cerr << "Error getting file limits, please see non-root install documentation" << endl;
return -1;
break;
case -2:
cerr << "Error setting file limits, please see non-root install documentation" << endl;
return -1;
break;
case -4:
cerr << "Could not install file limits to required value, please see non-root install documentation" << endl;
return -1;
break;
default:
break;
}
ostringstream serverParms;
serverParms << "pm" << weConfig.getLocalModuleID() << "_WriteEngineServer";