Skip to content

Commit db7a508

Browse files
author
magnus.blaudd@oracle.com
committed
ndb
- reduce make system magic by including the necessary by relative path instead of global include paths when accessing private internals
1 parent 59a3b63 commit db7a508

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

storage/ndb/src/mgmsrv/Config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <kernel/NodeBitmask.hpp>
2323
#include "ConfigInfo.hpp"
2424
#include <mgmapi.h>
25-
#include <mgmapi_configuration.hpp>
25+
#include "../mgmapi/mgmapi_configuration.hpp"
2626

2727

2828
/**

storage/ndb/tools/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ MYSQL_ADD_EXECUTABLE(ndb_config
7272
COMPONENT ClusterTools)
7373
TARGET_LINK_LIBRARIES(ndb_config ndbmgmclient ndbconf)
7474

75-
SET(options "-I${CMAKE_SOURCE_DIR}/storage/ndb/src/mgmapi")
76-
SET(options "${options} -I${CMAKE_SOURCE_DIR}/storage/ndb/src/mgmsrv")
77-
SET(options "${options} -I${CMAKE_SOURCE_DIR}/storage/ndb/include/mgmcommon")
78-
SET_TARGET_PROPERTIES(ndb_config PROPERTIES
79-
COMPILE_FLAGS "${options}")
80-
8175
# Build ndbinfo_sql and run it to create ndbinfo.sql
8276
ADD_EXECUTABLE(ndbinfo_sql ndbinfo_sql.cpp)
8377
TARGET_LINK_LIBRARIES(ndbinfo_sql ndbclient)

storage/ndb/tools/Makefile.am

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ ndb_config_SOURCES = ndb_config.cpp \
6060
../src/mgmsrv/ConfigInfo.cpp \
6161
../src/mgmsrv/InitConfigFileParser.cpp
6262

63-
ndb_config_CXXFLAGS = -I$(top_srcdir)/storage/ndb/src/mgmapi \
64-
-I$(top_srcdir)/storage/ndb/src/mgmsrv \
65-
-I$(top_srcdir)/storage/ndb/include/mgmcommon
66-
6763
ndb_restore_LDADD = $(top_builddir)/storage/ndb/src/common/util/libndbazio.la \
6864
$(LDADD)
6965

storage/ndb/tools/ndb_config.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
#include <NdbOut.hpp>
3030
#include <mgmapi.h>
31-
#include <mgmapi_configuration.hpp>
32-
#include <ConfigInfo.hpp>
31+
#include "../src/mgmapi/mgmapi_configuration.hpp"
32+
#include "../src/mgmsrv/ConfigInfo.hpp"
3333
#include <NdbAutoPtr.hpp>
3434
#include <NdbTCP.h>
3535

@@ -552,7 +552,7 @@ fetch_configuration()
552552
return conf;
553553
}
554554

555-
#include <Config.hpp>
555+
#include "../src/mgmsrv/Config.hpp"
556556
#include <EventLogger.hpp>
557557

558558
extern EventLogger *g_eventLogger;

0 commit comments

Comments
 (0)