summaryrefslogtreecommitdiff
path: root/ndb/src/kernel/ndb-main
diff options
context:
space:
mode:
Diffstat (limited to 'ndb/src/kernel/ndb-main')
-rw-r--r--ndb/src/kernel/ndb-main/Main.cpp8
-rw-r--r--ndb/src/kernel/ndb-main/Makefile_old2
-rw-r--r--ndb/src/kernel/ndb-main/SimBlockList.cpp15
3 files changed, 16 insertions, 9 deletions
diff --git a/ndb/src/kernel/ndb-main/Main.cpp b/ndb/src/kernel/ndb-main/Main.cpp
index 2ac32ada4ec..e8014b63d08 100644
--- a/ndb/src/kernel/ndb-main/Main.cpp
+++ b/ndb/src/kernel/ndb-main/Main.cpp
@@ -52,10 +52,7 @@ void systemInfo(const Configuration & conf,
const char programName[] = "NDB Kernel";
-extern int global_ndb_check;
NDB_MAIN(ndb_kernel){
-
- global_ndb_check = 1;
// Print to stdout/console
g_eventLogger.createConsoleHandler();
@@ -130,9 +127,7 @@ NDB_MAIN(ndb_kernel){
}
g_eventLogger.info("Angel pid: %d ndb pid: %d", getppid(), getpid());
-
- systemInfo(* theConfig,
- theConfig->clusterConfigurationData().SizeAltData.logLevel);
+ systemInfo(* theConfig, * theConfig->m_logLevel);
// Load blocks
globalEmulatorData.theSimBlockList->load(* theConfig);
@@ -147,6 +142,7 @@ NDB_MAIN(ndb_kernel){
char buf[255];
strcpy(buf, homePath);
FILE * signalLog = fopen(strncat(buf,"Signal.log", 255), "a");
+ globalSignalLoggers.setOwnNodeId(globalData.ownId);
globalSignalLoggers.setOutputStream(signalLog);
#endif
diff --git a/ndb/src/kernel/ndb-main/Makefile_old b/ndb/src/kernel/ndb-main/Makefile_old
index 29b7ea7e708..08fc125cb00 100644
--- a/ndb/src/kernel/ndb-main/Makefile_old
+++ b/ndb/src/kernel/ndb-main/Makefile_old
@@ -11,7 +11,7 @@ BIN_TARGET_ARCHIVES := mgmapi \
error \
trace \
signaldataprint \
- mgmsrvcommon \
+ mgmsrvcommon mgmapi \
portlib \
logger \
general
diff --git a/ndb/src/kernel/ndb-main/SimBlockList.cpp b/ndb/src/kernel/ndb-main/SimBlockList.cpp
index 9e1d28a7fce..bc6262e0723 100644
--- a/ndb/src/kernel/ndb-main/SimBlockList.cpp
+++ b/ndb/src/kernel/ndb-main/SimBlockList.cpp
@@ -32,6 +32,7 @@
#include <Suma.hpp>
#include <Grep.hpp>
#include <Dbtux.hpp>
+#include <NdbEnv.h>
enum SIMBLOCKLIST_DUMMY { A_VALUE = 0 };
@@ -68,10 +69,20 @@ SimBlockList::load(const Configuration & conf){
theList[i] = 0;
Dbdict* dbdict = 0;
Dbdih* dbdih = 0;
-
+
+ SimulatedBlock * fs = 0;
+ {
+ char buf[100];
+ if(NdbEnv_GetEnv("NDB_NOFS", buf, 100) == 0){
+ fs = new (A_VALUE) Ndbfs(conf);
+ } else {
+ fs = new (A_VALUE) VoidFs(conf);
+ }
+ }
+
theList[0] = new (A_VALUE) Dbacc(conf);
theList[1] = new (A_VALUE) Cmvmi(conf);
- theList[2] = new (A_VALUE) Ndbfs(conf);
+ theList[2] = fs;
theList[3] = dbdict = new (A_VALUE) Dbdict(conf);
theList[4] = dbdih = new (A_VALUE) Dbdih(conf);
theList[5] = new (A_VALUE) Dblqh(conf);