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

MCOL-1330 Make debug flag let valgrind work

Add a '-d' flag to WriteEngine, ExeMgr and PrimProc to let valgrind work
with them.
This commit is contained in:
Andrew Hutchings
2018-06-25 15:10:28 +01:00
parent 1ca68f63e2
commit 9e3f92b6a3
3 changed files with 40 additions and 3 deletions

View File

@ -103,6 +103,21 @@ int main(int argc, char** argv)
printf ("Locale is : %s\n", systemLang.c_str() );
int gDebug = 0;
int c;
while ((c = getopt(argc, argv, "d")) != EOF)
{
switch (c)
{
case 'd':
gDebug++;
break;
case '?':
default:
break;
}
}
//set BUSY_INIT state
{
// Is there a reason to have a seperate Oam instance for this?
@ -196,7 +211,9 @@ int main(int argc, char** argv)
}
}
int err = setupResources();
int err = 0;
if (!gDebug)
err = setupResources();
string errMsg;
switch (err)
{