You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-07 09:01:10 +03:00
Squash commit of fix-skip-oam-init branch.
Squashed commit of the following: commitfaaee9141a
Author: Patrick LeBlanc <patrick.leblanc@mariadb.com> Date: Wed Oct 3 13:03:02 2018 -0500 Commented a debugging printout. commite47e784c53
Author: Patrick LeBlanc <patrick.leblanc@mariadb.com> Date: Wed Oct 3 12:13:23 2018 -0500 Moved the SKIP_OAM_INIT check for cleanliness, added 'config.h' to other places that need it. commit6626045535
Author: Patrick LeBlanc <patrick.leblanc@mariadb.com> Date: Tue Oct 2 16:33:06 2018 -0500 WIP. First cut of excising OAM and root access from the dev process. This passes most tests; need to make sure that the tests that fail have nothing to do with this change. DMLProc is doing something that results in a sudo password prompt. Will obliterate that next.
This commit is contained in:
@ -2,6 +2,9 @@
|
|||||||
#ifndef TEST_CONFIG_H
|
#ifndef TEST_CONFIG_H
|
||||||
#define TEST_CONFIG_H
|
#define TEST_CONFIG_H
|
||||||
|
|
||||||
|
/* Define to 1 to let the system come up without using OAM */
|
||||||
|
#cmakedefine SKIP_OAM_INIT 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `alarm' function. */
|
/* Define to 1 if you have the `alarm' function. */
|
||||||
#cmakedefine HAVE_ALARM 1
|
#cmakedefine HAVE_ALARM 1
|
||||||
|
|
||||||
|
@ -716,7 +716,9 @@ IF (NOT INLINE)
|
|||||||
SET (inline "")
|
SET (inline "")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
IF($ENV{SKIP_OAM_INIT})
|
||||||
|
SET(SKIP_OAM_INIT 1)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
EXECUTE_PROCESS(
|
EXECUTE_PROCESS(
|
||||||
COMMAND rm -f conftest.data conftest.file conftest.sym
|
COMMAND rm -f conftest.data conftest.file conftest.sym
|
||||||
|
@ -63,6 +63,7 @@ using namespace std;
|
|||||||
#include <boost/scoped_ptr.hpp>
|
#include <boost/scoped_ptr.hpp>
|
||||||
using namespace boost;
|
using namespace boost;
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include "configcpp.h"
|
#include "configcpp.h"
|
||||||
using namespace config;
|
using namespace config;
|
||||||
#include "messagequeue.h"
|
#include "messagequeue.h"
|
||||||
@ -100,6 +101,10 @@ using namespace querytele;
|
|||||||
#include "threadpool.h"
|
#include "threadpool.h"
|
||||||
#include "crashtrace.h"
|
#include "crashtrace.h"
|
||||||
|
|
||||||
|
#if defined(SKIP_OAM_INIT)
|
||||||
|
#include "dbrm.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -1601,6 +1606,11 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(SKIP_OAM_INIT)
|
||||||
|
BRM::DBRM *dbrm = new BRM::DBRM();
|
||||||
|
dbrm->setSystemQueryReady(true);
|
||||||
|
delete dbrm;
|
||||||
|
#endif
|
||||||
|
|
||||||
threadpool::ThreadPool exeMgrThreadPool(serverThreads, 0);
|
threadpool::ThreadPool exeMgrThreadPool(serverThreads, 0);
|
||||||
exeMgrThreadPool.setName("ExeMgrServer");
|
exeMgrThreadPool.setName("ExeMgrServer");
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include "idbregistry.h"
|
#include "idbregistry.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "config.h"
|
||||||
#include "installdir.h"
|
#include "installdir.h"
|
||||||
#include "dbrm.h"
|
#include "dbrm.h"
|
||||||
#include "sessionmanager.h"
|
#include "sessionmanager.h"
|
||||||
|
@ -34,6 +34,7 @@ using namespace boost;
|
|||||||
#include "exceptclasses.h"
|
#include "exceptclasses.h"
|
||||||
#include "configcpp.h"
|
#include "configcpp.h"
|
||||||
#include "installdir.h"
|
#include "installdir.h"
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
@ -180,6 +181,7 @@ void OamCache::checkReload()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
pmToConnectionMap[*it] = i++;
|
||||||
moduleIds.push_back(*it);
|
moduleIds.push_back(*it);
|
||||||
#endif
|
#endif
|
||||||
it++;
|
it++;
|
||||||
|
@ -37,6 +37,7 @@ using namespace std;
|
|||||||
#include "boost/filesystem/operations.hpp"
|
#include "boost/filesystem/operations.hpp"
|
||||||
using namespace boost;
|
using namespace boost;
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include "installdir.h"
|
#include "installdir.h"
|
||||||
|
|
||||||
#include "configcpp.h"
|
#include "configcpp.h"
|
||||||
|
@ -43,6 +43,7 @@ using namespace std;
|
|||||||
#include <boost/thread.hpp>
|
#include <boost/thread.hpp>
|
||||||
using namespace boost;
|
using namespace boost;
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include "configcpp.h"
|
#include "configcpp.h"
|
||||||
using namespace config;
|
using namespace config;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user