summaryrefslogtreecommitdiff
path: root/ndb/src/kernel/vm/Configuration.cpp
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.(none)>2004-08-26 14:35:33 +0000
committerunknown <tomas@poseidon.(none)>2004-08-26 14:35:33 +0000
commitc42ce28591de77a01c200cbd2c6cb4ed8be18764 (patch)
treef76eb4de258b4fbef67de97f020eed43115cc6c1 /ndb/src/kernel/vm/Configuration.cpp
parente387719d468da6571f50c9938c50b4091a1065c4 (diff)
downloadmariadb-git-c42ce28591de77a01c200cbd2c6cb4ed8be18764.tar.gz
ndb cluster config fixes, se respective files
mysql-test/ndb/ndb_config_2_node.ini: added new config parameter datadir ndb/include/mgmapi/mgmapi_config_parameters.h: added new config parameter datadir and backup data dir ndb/include/mgmcommon/ConfigRetriever.hpp: changed verify config so that it can be used by mgmt srvr ndb/include/mgmcommon/NdbConfig.h: added option to set path for ndb files ndb/src/common/mgmcommon/ConfigInfo.cpp: changed token names for DB, MGM and API added config parametsers for datadir and backup data dir ndb/src/common/mgmcommon/ConfigRetriever.cpp: changed verify config so that it can be used by mgmt srvr ndb/src/common/mgmcommon/InitConfigFileParser.cpp: no need anymore to make uppercase ndb/src/common/mgmcommon/NdbConfig.c: bugfix+ added method to set datadir ndb/src/kernel/Makefile.am: added debug libs to ndbd ndb/src/kernel/vm/Configuration.cpp: added debug libs to ndbd ndb/src/mgmsrv/MgmtSrvr.cpp: added verify config to mgmt srvr ndb/src/mgmsrv/main.cpp: .
Diffstat (limited to 'ndb/src/kernel/vm/Configuration.cpp')
-rw-r--r--ndb/src/kernel/vm/Configuration.cpp26
1 files changed, 19 insertions, 7 deletions
diff --git a/ndb/src/kernel/vm/Configuration.cpp b/ndb/src/kernel/vm/Configuration.cpp
index 9469a39a6f5..1acc5d59f97 100644
--- a/ndb/src/kernel/vm/Configuration.cpp
+++ b/ndb/src/kernel/vm/Configuration.cpp
@@ -14,6 +14,9 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+#include <ndb_global.h>
+#include <my_sys.h>
+
#include "Configuration.hpp"
#include <ErrorHandlingMacros.hpp>
#include "GlobalData.hpp"
@@ -56,6 +59,9 @@ Configuration::init(int argc, const char** argv){
int _deamon = 0;
int _help = 0;
int _print_version = 0;
+#ifndef DBUG_OFF
+ const char *debug_option= 0;
+#endif
/**
* Arguments to NDB process
@@ -66,6 +72,10 @@ Configuration::init(int argc, const char** argv){
{ "nostart", 'n', arg_flag, &_no_start,
"Don't start ndbd immediately. Ndbd will await command from ndb_mgmd", "" },
{ "daemon", 'd', arg_flag, &_deamon, "Start ndbd as daemon", "" },
+#ifndef DBUG_OFF
+ { "debug", 0, arg_string, &debug_option,
+ "Specify debug options e.g. d:t:i:o,out.trace", "options" },
+#endif
{ "initial", 'i', arg_flag, &_initial,
"Perform initial start of ndbd, including cleaning the file system. Consult documentation before using this", "" },
@@ -84,15 +94,17 @@ Configuration::init(int argc, const char** argv){
return false;
}
-#if 0
- ndbout << "no_start=" <<_no_start<< endl;
- ndbout << "initial=" <<_initial<< endl;
- ndbout << "deamon=" <<_deamon<< endl;
- ndbout << "connect_str="<<_connect_str<<endl;
- arg_printusage(args, num_args, argv[0], desc);
- return false;
+#ifndef DBUG_OFF
+ my_init();
+ if (debug_option)
+ DBUG_PUSH(debug_option);
#endif
+ DBUG_PRINT("info", ("no_start=%d", _no_start));
+ DBUG_PRINT("info", ("initial=%d", _initial));
+ DBUG_PRINT("info", ("deamon=%d", _deamon));
+ DBUG_PRINT("info", ("connect_str=%s", _connect_str));
+
ndbSetOwnVersion();
if (_print_version) {