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
3426a62a
Commit
3426a62a
authored
Feb 26, 2008
by
kent@kent-amd64.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/kent/bk/build/mysql-4.1-build
into mysql.com:/home/kent/bk/build/mysql-5.0-build
parents
7f2e0762
ff25b925
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
configure.in
configure.in
+13
-3
ndb/src/common/util/SocketServer.cpp
ndb/src/common/util/SocketServer.cpp
+1
-1
No files found.
configure.in
View file @
3426a62a
...
...
@@ -28,9 +28,19 @@ NDB_VERSION_STATUS=""
# Set all version vars based on $VERSION. How do we do this more elegant ?
# Remember that regexps needs to quote [ and ] since this is run through m4
MYSQL_NO_DASH_VERSION
=
`
echo
$VERSION
|
sed
-e
"s|[[a-z]]*-.*
$|
|"
`
MYSQL_BASE_VERSION
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
"s|
\.
[[^.]]*
$|
|"
`
MYSQL_VERSION_ID
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
's|[[^0-9.]].*$||;s|$|.|'
|
sed
-e
's/[[^0-9.]]//g; s/\./ /g; s/ \([[0-9]]\) / 0\\1 /g; s/ //g'
`
# We take some made up examples
#
# VERSION 5.1.40sp1-alpha 5.0.34a
# MYSQL_NO_DASH_VERSION 5.1.40sp1 5.0.34a
# MYSQL_NUMERIC_VERSION 5.1.40 5.0.34
# MYSQL_BASE_VERSION 5.1 5.0
# MYSQL_VERSION_ID 50140 50034
#
MYSQL_NO_DASH_VERSION
=
`
echo
$VERSION
|
sed
-e
"s|-.*
$|
|"
`
MYSQL_NUMERIC_VERSION
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
"s|[[a-z]][[a-z0-9]]*
$|
|"
`
MYSQL_BASE_VERSION
=
`
echo
$MYSQL_NUMERIC_VERSION
|
sed
-e
"s|
\.
[[^.]]*
$|
|"
`
MYSQL_VERSION_ID
=
`
echo
$MYSQL_NUMERIC_VERSION
|
\
awk
-F
.
'{printf "%d%0.2d%0.2d", $1, $2, $3}'
`
# Add previous major version for debian package upgrade path
MYSQL_PREVIOUS_BASE_VERSION
=
4.1
...
...
ndb/src/common/util/SocketServer.cpp
View file @
3426a62a
...
...
@@ -112,7 +112,7 @@ SocketServer::setup(SocketServer::Service * service,
const
int
on
=
1
;
if
(
setsockopt
(
sock
,
SOL_SOCKET
,
SO_REUSEADDR
,
(
const
char
*
)
&
on
,
sizeof
(
on
))
==
-
1
)
{
DBUG_PRINT
(
"error"
,(
"
g
etsockopt() - %d - %s"
,
DBUG_PRINT
(
"error"
,(
"
s
etsockopt() - %d - %s"
,
errno
,
strerror
(
errno
)));
NDB_CLOSE_SOCKET
(
sock
);
DBUG_RETURN
(
false
);
...
...
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