Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5645b796
Commit
5645b796
authored
May 27, 2004
by
tomas@poseidon.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
several ndb automake changes, see respective file
parent
d1abc78a
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
136 additions
and
34 deletions
+136
-34
configure.in
configure.in
+30
-1
mysql-test/ndb/Makefile.am
mysql-test/ndb/Makefile.am
+27
-0
mysql-test/ndb/install_ndbcluster.sh
mysql-test/ndb/install_ndbcluster.sh
+19
-8
mysql-test/ndb/stop_ndbcluster.sh
mysql-test/ndb/stop_ndbcluster.sh
+10
-2
ndb/Makefile.am
ndb/Makefile.am
+28
-0
ndb/config/common.mk.am
ndb/config/common.mk.am
+1
-1
ndb/config/type_ndbapi.mk.am
ndb/config/type_ndbapi.mk.am
+1
-0
ndb/src/cw/cpcd/Makefile.am
ndb/src/cw/cpcd/Makefile.am
+1
-1
ndb/src/kernel/blocks/backup/restore/Makefile.am
ndb/src/kernel/blocks/backup/restore/Makefile.am
+1
-1
ndb/src/kernel/ndb-main/Makefile.am
ndb/src/kernel/ndb-main/Makefile.am
+1
-1
ndb/src/mgmapi/Makefile.am
ndb/src/mgmapi/Makefile.am
+4
-4
ndb/src/mgmclient/Makefile.am
ndb/src/mgmclient/Makefile.am
+1
-1
ndb/src/mgmsrv/Makefile.am
ndb/src/mgmsrv/Makefile.am
+6
-8
ndb/src/ndbapi/Makefile.am
ndb/src/ndbapi/Makefile.am
+1
-1
ndb/test/ndbapi/Makefile.am
ndb/test/ndbapi/Makefile.am
+1
-1
ndb/test/ndbapi/bank/Makefile.am
ndb/test/ndbapi/bank/Makefile.am
+1
-1
ndb/test/tools/Makefile.am
ndb/test/tools/Makefile.am
+1
-2
ndb/tools/Makefile.am
ndb/tools/Makefile.am
+2
-1
ndb/tools/waiter.cpp
ndb/tools/waiter.cpp
+0
-0
No files found.
configure.in
View file @
5645b796
...
...
@@ -2837,6 +2837,35 @@ then
CXXFLAGS
=
"
$CXXFLAGS
\$
(NDB_CXXFLAGS)"
fi
ndbbindir_root
=
"
\$
(prefix)"
ndbbindir
=
"
\$
(ndbbindir_root)/ndb/bin"
AC_SUBST
(
ndbbindir_root
)
AC_SUBST
(
ndbbindir
)
ndbtoolsdir_root
=
"
\$
(prefix)"
ndbtoolsdir
=
"
\$
(ndbtoolsdir_root)/ndb/tools"
AC_SUBST
(
ndbtoolsdir_root
)
AC_SUBST
(
ndbtoolsdir
)
ndblibdir_root
=
"
\$
(prefix)"
ndblibdir
=
"
\$
(ndblibdir_root)/ndb/lib"
AC_SUBST
(
ndblibdir_root
)
AC_SUBST
(
ndblibdir
)
ndbtestdir_root
=
"
\$
(prefix)"
ndbtestdir
=
"
\$
(ndbtestdir_root)/ndb/test"
AC_SUBST
(
ndbtestdir_root
)
AC_SUBST
(
ndbtestdir
)
ndbincludedir_root
=
"
\$
(prefix)"
ndbincludedir
=
"
\$
(ndbincludedir_root)/ndb/include"
AC_SUBST
(
ndbincludedir_root
)
AC_SUBST
(
ndbincludedir
)
ndbapiincludedir_root
=
"
\$
(prefix)"
ndbapiincludedir
=
"
\$
(ndbapiincludedir_root)/ndb/include/ndbapi"
AC_SUBST
(
ndbapiincludedir_root
)
AC_SUBST
(
ndbapiincludedir
)
mgmapiincludedir_root
=
"
\$
(prefix)"
mgmapiincludedir
=
"
\$
(mgmapiincludedir_root)/ndb/include/mgmapi"
AC_SUBST
(
mgmapiincludedir_root
)
AC_SUBST
(
mgmapiincludedir
)
NDB_UTIL_INCLUDES
=
"-I
\$
(srcdir) -I
\$
(top_srcdir)/include -I
\$
(top_srcdir)/ndb/include
\
-I
\$
(top_srcdir)/ndb/include/util
\
-I
\$
(top_srcdir)/ndb/include/portlib
\
...
...
@@ -2958,7 +2987,7 @@ AC_OUTPUT(Makefile extra/Makefile mysys/Makefile isam/Makefile dnl
merge/Makefile dbug/Makefile scripts/Makefile dnl
include/Makefile sql-bench/Makefile tools/Makefile dnl
tests/Makefile Docs/Makefile support-files/Makefile dnl
support-files/MacOSX/Makefile mysql-test/Makefile dnl
support-files/MacOSX/Makefile mysql-test/Makefile
mysql-test/ndb/Makefile
dnl
netware/Makefile dnl
include/mysql_version.h dnl
cmd-line-utils/Makefile dnl
...
...
mysql-test/ndb/Makefile.am
0 → 100644
View file @
5645b796
benchdir_root
=
$(prefix)
testdir
=
$(benchdir_root)
/mysql-test/ndb
test_SCRIPTS
=
\
install_ndbcluster
\
stop_ndbcluster
EXTRA_SCRIPTS
=
\
install_ndbcluster.sh
\
stop_ndbcluster.sh
test_DATA
=
ndb_config_2_node.ini
SUFFIXES
=
.sh
.sh
:
@
RM@
-f
$@
$@
-t
@
SED@
\
-e
's!@''ndbbindir''@!
$(ndbbindir)
!g'
\
-e
's!@''ndbtoolsdir''@!
$(ndbtoolsdir)
!g'
\
$<
>
$@
-t
@
CHMOD@ +x
$@
-t
@
MV@
$@
-t
$@
# Don't update the files from bitkeeper
%
::
SCCS/s.%
mysql-test/ndb/install_ndbcluster
→
mysql-test/ndb/install_ndbcluster
.sh
View file @
5645b796
...
...
@@ -9,8 +9,22 @@ port_base="22" # using ports port_base{"00","01", etc}
fsdir
=
`
pwd
`
# end configurable parameters
libdir
=
`
pwd
`
/../ndb/lib
bindir
=
`
pwd
`
/../ndb/bin
# Are we using a source or a binary distribution?
if
[
-d
../sql
]
;
then
SOURCE_DIST
=
1
ndbtop
=
../ndb
exec_ndb
=
$ndbtop
/src/kernel/ndb-main/ndb
exec_mgmtsrvr
=
$ndbtop
/src/mgmsrv/mgmtsrvr
exec_waiter
=
$ndbtop
/tools/ndbwaiter
exec_mgmtclient
=
$ndbtop
/src/mgmclient/mgmtclient
else
BINARY_DIST
=
1
exec_ndb
=
@ndbbindir@/ndb
exec_mgmtsrvr
=
@ndbbindir@/mgmtsrvr
exec_waiter
=
@ndbtoolsdir@/waiter
exec_mgmtclient
=
@ndbbindir@/mgmtclient
fi
pidfile
=
ndbcluster.pid
...
...
@@ -33,8 +47,6 @@ while test $# -gt 0; do
shift
done
exec_ndb
=
$bindir
/ndb
exec_mgmtsrvr
=
$bindir
/mgmtsrvr
fs_ndb
=
$fsdir
/ndbcluster
fs_mgm_1
=
$fs_ndb
/1.ndb_mgm
fs_ndb_2
=
$fs_ndb
/2.ndb_db
...
...
@@ -125,15 +137,14 @@ cat `find $fs_ndb -name 'node*.pid'` > $pidfile
# Start management client
sleep
5
echo
"show"
|
$
bindir
/
mgmtclient
$ndb_host
$ndb_port
sleep
10
echo
"show"
|
$
exec_
mgmtclient
$ndb_host
$ndb_port
# test if Ndb Cluster starts properly
NDB_ID
=
"11"
NDB_CONNECTSTRING
=
$NDB_CONNECTSTRING_BASE$NDB_ID
#if ( export LD_LIBRARY_PATH=$libdir ; $bindir/list_tables ) | grep "NDBT_ProgramExit: 0 - OK"; then :; else
if
(
export
LD_LIBRARY_PATH
=
$libdir
;
$bindir
/waiter
)
|
grep
"NDBT_ProgramExit: 0 - OK"
;
then
:
;
else
if
(
$exec_waiter
)
|
grep
"NDBT_ProgramExit: 0 - OK"
;
then
:
;
else
echo
"Ndbcluster startup failed"
exit
1
fi
...
...
mysql-test/ndb/stop_ndbcluster
→
mysql-test/ndb/stop_ndbcluster
.sh
View file @
5645b796
...
...
@@ -4,7 +4,15 @@
# This scripts stops the table handler ndbcluster
bindir
=
`
pwd
`
/../ndb/bin
if
[
-d
../sql
]
;
then
SOURCE_DIST
=
1
ndbtop
=
../ndb
exec_mgmtclient
=
$ndbtop
/src/mgmclient/mgmtclient
else
BINARY_DIST
=
1
exec_mgmtclient
=
@ndbbindir@/mgmtclient
fi
pidfile
=
ndbcluster.pid
cfgfile
=
Ndb.cfg
...
...
@@ -36,7 +44,7 @@ ndb_port=`cat $cfgfile | sed -e "s,.*host=$ndb_host\:\([0-9]*\).*,\1,1"`
# Start management client
exec_mgmtclient
=
"
$
bindir
/
mgmtclient --try-reconnect=1
$ndb_host
$ndb_port
"
exec_mgmtclient
=
"
$
exec_
mgmtclient
--try-reconnect=1
$ndb_host
$ndb_port
"
echo
"
$exec_mgmtclient
"
echo
"all stop"
|
$exec_mgmtclient
...
...
ndb/Makefile.am
View file @
5645b796
...
...
@@ -3,4 +3,32 @@
SUBDIRS
=
.
include src
test
tools
ndbinclude_HEADERS
=
\
include/ndb_types.h
\
include/ndb_version.h
ndbapiinclude_HEADERS
=
\
include/ndbapi/ndbapi_limits.h
\
include/ndbapi/Ndb.hpp
\
include/ndbapi/NdbApi.hpp
\
include/ndbapi/NdbConnection.hpp
\
include/ndbapi/NdbCursorOperation.hpp
\
include/ndbapi/NdbDictionary.hpp
\
include/ndbapi/NdbError.hpp
\
include/ndbapi/NdbEventOperation.hpp
\
include/ndbapi/NdbIndexOperation.hpp
\
include/ndbapi/NdbOperation.hpp
\
include/ndbapi/NdbPool.hpp
\
include/ndbapi/NdbRecAttr.hpp
\
include/ndbapi/NdbReceiver.hpp
\
include/ndbapi/NdbResultSet.hpp
\
include/ndbapi/NdbScanFilter.hpp
\
include/ndbapi/NdbScanOperation.hpp
\
include/ndbapi/NdbSchemaCon.hpp
\
include/ndbapi/NdbSchemaOp.hpp
mgmapiinclude_HEADERS
=
\
include/mgmapi/mgmapi.h
\
include/mgmapi/mgmapi_debug.h
noinst_HEADERS
=
ndb/config/common.mk.am
View file @
5645b796
INCLUDES = $(INCLUDES_LOC)
LDADD = $(top_srcdir)/ndb/src/common/portlib/gcc.cpp $(LDADD_LOC)
DEFS = @DEFS@ @NDB_DEFS@
DEFS = @DEFS@ @NDB_DEFS@
$(DEFS_LOC)
# ndb cannot be compiled with -fno-implicit-templaces
NDB_CXXFLAGS=-fimplicit-templates
##use AM_CXXFLAGS for other flags
...
...
ndb/config/type_ndbapi.mk.am
View file @
5645b796
INCLUDES += @NDB_NDBAPI_INCLUDES@
LDADD += $(top_srcdir)/ndb/src/ndbapi/libNDB_API.la
ndb/src/cw/cpcd/Makefile.am
View file @
5645b796
bin
_PROGRAMS
=
ndb_cpcd
ndbtools
_PROGRAMS
=
ndb_cpcd
ndb_cpcd_SOURCES
=
main.cpp CPCD.cpp Process.cpp APIService.cpp Monitor.cpp common.cpp
...
...
ndb/src/kernel/blocks/backup/restore/Makefile.am
View file @
5645b796
bin
_PROGRAMS
=
restore
ndbtools
_PROGRAMS
=
restore
restore_SOURCES
=
main.cpp Restore.cpp
...
...
ndb/src/kernel/ndb-main/Makefile.am
View file @
5645b796
bin_PROGRAMS
=
ndb
ndb
bin_PROGRAMS
=
ndb
ndb_SOURCES
=
Main.cpp SimBlockList.cpp
...
...
ndb/src/mgmapi/Makefile.am
View file @
5645b796
n
oinst
_LTLIBRARIES
=
libmgmapi.la libMGM_API.la
n
dblib
_LTLIBRARIES
=
libmgmapi.la libMGM_API.la
libmgmapi_la_SOURCES_loc
=
mgmapi.cpp
libmgmapi_la_SOURCES
=
$(libmgmapi_la_SOURCES_loc)
libMGM_API_la_SOURCES
=
$(libmgmapi_la_SOURCES_loc)
INCLUDES_LOC
=
-I
$(top_srcdir)
/ndb/include/mgmapi
-I
$(top_srcdir)
/ndb/src/common/mgmcommon
DEFS_LOC
=
-DNO_DEBUG_MESSAGES
include
$(top_srcdir)/ndb/config/common.mk.am
include
$(top_srcdir)/ndb/config/type_util.mk.am
INCLUDES
+=
-I
$(top_srcdir)
/ndb/include/mgmapi
-I
$(top_srcdir)
/ndb/src/common/mgmcommon
DEFS
+=
-DNO_DEBUG_MESSAGES
libMGM_API_la_LIBADD
=
\
$(top_srcdir)
/ndb/src/common/portlib/unix/libportlib.la
\
...
...
ndb/src/mgmclient/Makefile.am
View file @
5645b796
bin_PROGRAMS
=
mgmtclient
ndb
bin_PROGRAMS
=
mgmtclient
mgmtclient_SOURCES
=
\
main.cpp
\
...
...
ndb/src/mgmsrv/Makefile.am
View file @
5645b796
bin_PROGRAMS
=
mgmtsrvr
ndb
bin_PROGRAMS
=
mgmtsrvr
mgmtsrvr_SOURCES
=
\
MgmtSrvr.cpp
\
...
...
@@ -13,17 +13,15 @@ mgmtsrvr_SOURCES = \
MgmtSrvrConfig.cpp
\
CommandInterpreter.cpp
include
$(top_srcdir)/ndb/config/common.mk.am
include
$(top_srcdir)/ndb/config/type_ndbapi.mk.am
INCLUDES
+=
-I
$(top_srcdir)
/ndb/src/ndbapi
-I
$(top_srcdir)
/ndb/include/mgmapi
-I
$(top_srcdir)
/ndb/src/common/mgmcommon
INCLUDES_LOC
=
-I
$(top_srcdir)
/ndb/src/ndbapi
-I
$(top_srcdir)
/ndb/include/mgmapi
-I
$(top_srcdir)
/ndb/src/common/mgmcommon
LDADD
+
=
\
LDADD
_LOC
=
\
$(top_srcdir)
/ndb/src/mgmapi/libmgmapi.la
\
$(top_srcdir)
/ndb/src/ndbapi/libNDB_API.la
\
$(top_srcdir)
/ndb/src/common/mgmcommon/libmgmsrvcommon.la
\
$(top_srcdir)
/ndb/src/common/util/libgeneral.la
\
$(top_srcdir)
/ndb/src/common/editline/libeditline.a
\
@TERMCAP_LIB@
include
$(top_srcdir)/ndb/config/common.mk.am
include
$(top_srcdir)/ndb/config/type_ndbapi.mk.am
# Don't update the files from bitkeeper
%
::
SCCS/s.%
ndb/src/ndbapi/Makefile.am
View file @
5645b796
#SUBDIRS = signal-sender
n
oinst
_LTLIBRARIES
=
libndbapi.la libNDB_API.la
n
dblib
_LTLIBRARIES
=
libndbapi.la libNDB_API.la
libndbapi_la_SOURCES_loc
=
\
TransporterFacade.cpp
\
...
...
ndb/test/ndbapi/Makefile.am
View file @
5645b796
SUBDIRS
=
bank
bin
_PROGRAMS
=
\
ndbtest
_PROGRAMS
=
\
flexBench
\
drop_all_tabs
\
create_all_tabs
\
...
...
ndb/test/ndbapi/bank/Makefile.am
View file @
5645b796
bin
_PROGRAMS
=
testBank bankSumAccounts bankValidateAllGLs bankMakeGL bankTransactionMaker bankCreator bankTimer
ndbtest
_PROGRAMS
=
testBank bankSumAccounts bankValidateAllGLs bankMakeGL bankTransactionMaker bankCreator bankTimer
noinst_LIBRARIES
=
libbank.a
...
...
ndb/test/tools/Makefile.am
View file @
5645b796
bin_PROGRAMS
=
waiter
hugoCalculator hugoLoad hugoFill hugoLockRecords hugoPkDelete hugoPkRead hugoPkReadRecord hugoPkUpdate hugoScanRead hugoScanUpdate restart verify_index copy_tab create_index ndb_cpcc
ndbtest_PROGRAMS
=
hugoCalculator hugoLoad hugoFill hugoLockRecords hugoPkDelete hugoPkRead hugoPkReadRecord hugoPkUpdate hugoScanRead hugoScanUpdate restart verify_index copy_tab create_index ndb_cpcc
# transproxy
...
...
@@ -14,7 +14,6 @@ hugoPkUpdate_SOURCES = hugoPkUpdate.cpp
hugoScanRead_SOURCES
=
hugoScanRead.cpp
hugoScanUpdate_SOURCES
=
hugoScanUpdate.cpp
restart_SOURCES
=
restart.cpp
waiter_SOURCES
=
waiter.cpp
# transproxy_SOURCES = transproxy.cpp
verify_index_SOURCES
=
verify_index.cpp
copy_tab_SOURCES
=
copy_tab.cpp
...
...
ndb/tools/Makefile.am
View file @
5645b796
bin_PROGRAMS
=
drop_tab delete_all desc drop_index list_tables select_all select_count
ndbtools_PROGRAMS
=
ndb_waiter
drop_tab delete_all desc drop_index list_tables select_all select_count
ndb_waiter_SOURCES
=
waiter.cpp
delete_all_SOURCES
=
delete_all.cpp
desc_SOURCES
=
desc.cpp
drop_index_SOURCES
=
drop_index.cpp
...
...
ndb/t
est/t
ools/waiter.cpp
→
ndb/tools/waiter.cpp
View file @
5645b796
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment