1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +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

@ -1342,7 +1342,26 @@ int main(int argc, char* argv[])
setenv("CALPONT_CSC_IDENT", "um", 1);
#endif
setupSignalHandlers();
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;
}
setupCwd(rm);