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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
02209bb0
Commit
02209bb0
authored
Nov 11, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wl1744- ndb windows
move ports into ndb_global
parent
b2ff852c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
58 deletions
+19
-58
configure.in
configure.in
+1
-1
ndb/include/ndb_global.h.in
ndb/include/ndb_global.h.in
+4
-0
ndb/include/ndb_types.h
ndb/include/ndb_types.h
+7
-3
ndb/include/ndb_version.h
ndb/include/ndb_version.h
+0
-42
ndb/src/common/mgmcommon/Makefile.am
ndb/src/common/mgmcommon/Makefile.am
+0
-2
ndb/src/mgmsrv/ConfigInfo.cpp
ndb/src/mgmsrv/ConfigInfo.cpp
+2
-2
ndb/src/mgmsrv/Makefile.am
ndb/src/mgmsrv/Makefile.am
+1
-3
ndb/src/ndbapi/ndberror.c
ndb/src/ndbapi/ndberror.c
+4
-5
No files found.
configure.in
View file @
02209bb0
...
...
@@ -3132,6 +3132,7 @@ AC_CONFIG_FILES(ndb/Makefile ndb/include/Makefile dnl
ndb/test/ndbapi/bank/Makefile dnl
ndb/test/tools/Makefile dnl
ndb/test/run-test/Makefile mysql-test/ndb/Makefile dnl
ndb/include/ndb_version.h ndb/include/ndb_global.h dnl
)
fi
...
...
@@ -3153,7 +3154,6 @@ AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
support-files/MacOSX/Makefile mysql-test/Makefile dnl
netware/Makefile dnl
include/mysql_version.h dnl
ndb/include/ndb_version.h dnl
cmd-line-utils/Makefile dnl
cmd-line-utils/libedit/Makefile dnl
zlib/Makefile dnl
...
...
ndb/include/ndb_global.h
→
ndb/include/ndb_global.h
.in
View file @
02209bb0
...
...
@@ -4,6 +4,9 @@
#include <ndb_types.h>
#define NDB_PORT "@ndb_port@"
#define NDB_TCP_BASE_PORT "@ndb_port_base@"
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32)
#define NDB_WIN32
#include <winsock2.h>
...
...
@@ -12,6 +15,7 @@
#define PATH_MAX 256
#define DIR_SEPARATOR "\\"
#define MYSQLCLUSTERDIR "c:\\mysql\\mysql-cluster"
#pragma warning(disable: 4503 4786)
...
...
ndb/include/ndb_types.h
View file @
02209bb0
...
...
@@ -40,16 +40,20 @@ typedef __SIZE_TYPE__ UintPtr;
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#if defined(WIN32) || defined(NDB_WIN32)
typedef
Uint32
UintPtr
;
#else
typedef
uintptr_t
UintPtr
;
#endif
#endif
#if defined(WIN32) || defined(NDB_WIN32)
typedef
unsigned
__int64
Uint64
;
typedef
signed
__int64
Int64
;
typedef
Uint32
UintPtr
;
typedef
UintPtr
ssize_t
;
#else
typedef
unsigned
long
long
Uint64
;
typedef
signed
long
long
Int64
;
typedef
uintptr_t
UintPtr
;
#endif
#endif
...
...
ndb/include/ndb_version.h
deleted
100644 → 0
View file @
b2ff852c
/* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#ifndef NDB_VERSION_H
#define NDB_VERSION_H
#include <ndb_global.h>
#include <version.h>
#define MAKE_VERSION(A,B,C) (((A) << 16) | ((B) << 8) | ((C) << 0))
#define NDB_VERSION_D MAKE_VERSION(NDB_VERSION_MAJOR, NDB_VERSION_MINOR, NDB_VERSION_BUILD)
#define NDB_VERSION_STRING (getVersionString(NDB_VERSION, NDB_VERSION_STATUS))
#define NDB_VERSION_TAG_STRING "$Name: $"
#define NDB_VERSION ndbGetOwnVersion()
/**
* Version id
*
* Used by transporter and when communicating with
* managment server
*/
/*#define NDB_VERSION_ID 0*/
#endif
ndb/src/common/mgmcommon/Makefile.am
View file @
02209bb0
...
...
@@ -7,8 +7,6 @@ libmgmsrvcommon_la_SOURCES = \
INCLUDES_LOC
=
-I
$(top_srcdir)
/ndb/src/mgmapi
-I
$(top_srcdir)
/ndb/src/mgmsrv
DEFS_LOC
=
-DNDB_PORT
=
"
\"
@ndb_port@
\"
"
include
$(top_srcdir)/ndb/config/common.mk.am
include
$(top_srcdir)/ndb/config/type_ndbapi.mk.am
include
$(top_srcdir)/ndb/config/type_mgmapiclient.mk.am
...
...
ndb/src/mgmsrv/ConfigInfo.cpp
View file @
02209bb0
...
...
@@ -3011,7 +3011,7 @@ fixPortNumber(InitConfigFileParser::Context & ctx, const char * data){
if
(
!
(
ctx
.
m_userDefaults
&&
ctx
.
m_userDefaults
->
get
(
"PortNumber"
,
&
base
))
&&
!
ctx
.
m_systemDefaults
->
get
(
"PortNumber"
,
&
base
))
{
base
=
strtoll
(
NDB_BASE_PORT
,
0
,
0
);
base
=
strtoll
(
NDB_
TCP_
BASE_PORT
,
0
,
0
);
// ctx.reportError("Cannot retrieve base port number");
// return false;
}
...
...
@@ -3443,7 +3443,7 @@ static bool add_server_ports(Vector<ConfigInfo::ConfigRuleSection>§ions,
#if 0
Properties * props= ctx.m_config;
Properties computers(true);
Uint32 port_base = NDB_BASE_PORT;
Uint32 port_base = NDB_
TCP_
BASE_PORT;
Uint32 nNodes;
ctx.m_userProperties.get("NoOfNodes", &nNodes);
...
...
ndb/src/mgmsrv/Makefile.am
View file @
02209bb0
...
...
@@ -32,9 +32,7 @@ LDADD_LOC = $(top_builddir)/ndb/src/libndbclient.la \
DEFS_LOC
=
-DDEFAULT_MYSQL_HOME
=
"
\"
$(MYSQLBASEdir)
\"
"
\
-DDATADIR
=
"
\"
$(MYSQLDATAdir)
\"
"
\
-DSHAREDIR
=
"
\"
$(MYSQLSHAREdir)
\"
"
\
-DMYSQLCLUSTERDIR
=
"
\"
$(MYSQLCLUSTERdir)
\"
"
\
-DNDB_PORT
=
"
\"
@ndb_port@
\"
"
\
-DNDB_BASE_PORT
=
"
\"
@ndb_port_base@
\"
"
-DMYSQLCLUSTERDIR
=
"
\"
$(MYSQLCLUSTERdir)
\"
"
include
$(top_srcdir)/ndb/config/common.mk.am
include
$(top_srcdir)/ndb/config/type_ndbapi.mk.am
...
...
ndb/src/ndbapi/ndberror.c
View file @
02209bb0
...
...
@@ -17,7 +17,6 @@
#include <ndb_global.h>
#include <ndberror.h>
#include <basestring_vsnprintf.h>
typedef
struct
ErrorBundle
{
int
code
;
...
...
@@ -595,10 +594,10 @@ int ndb_error_string(int err_no, char *str, unsigned int size)
ndberror_update
(
&
error
);
len
=
basestring
_snprintf
(
str
,
size
-
1
,
"%s: %s: %s"
,
error
.
message
,
ndberror_status_message
(
error
.
status
),
ndberror_classification_message
(
error
.
classification
));
my
_snprintf
(
str
,
size
-
1
,
"%s: %s: %s"
,
error
.
message
,
ndberror_status_message
(
error
.
status
),
ndberror_classification_message
(
error
.
classification
));
str
[
size
-
1
]
=
'\0'
;
return
len
;
}
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