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
891202f7
Commit
891202f7
authored
Jan 13, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0
parents
c43a7e2e
b9e1c443
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
7 deletions
+29
-7
ndb/src/mgmsrv/MgmtSrvr.cpp
ndb/src/mgmsrv/MgmtSrvr.cpp
+10
-0
ndb/test/ndbapi/testDataBuffers.cpp
ndb/test/ndbapi/testDataBuffers.cpp
+19
-7
No files found.
ndb/src/mgmsrv/MgmtSrvr.cpp
View file @
891202f7
...
...
@@ -1868,6 +1868,16 @@ MgmtSrvr::alloc_node_id(NodeId * nodeId,
m_connect_address
[
id_found
].
s_addr
=
0
;
}
m_reserved_nodes
.
set
(
id_found
);
if
(
theFacade
&&
id_found
!=
theFacade
->
ownId
())
{
/**
* Make sure we're ready to accept connections from this node
*/
theFacade
->
lock_mutex
();
theFacade
->
doConnect
(
id_found
);
theFacade
->
unlock_mutex
();
}
char
tmp_str
[
128
];
m_reserved_nodes
.
getText
(
tmp_str
);
g_eventLogger
.
info
(
"Mgmt server state: nodeid %d reserved for ip %s, m_reserved_nodes %s."
,
...
...
ndb/test/ndbapi/testDataBuffers.cpp
View file @
891202f7
...
...
@@ -254,12 +254,6 @@ testcase(Ndb_cluster_connection&cc, int flag)
ndbout
<<
"tab="
<<
tab
<<
" cols="
<<
attrcnt
<<
" size max="
<<
smax
<<
" tot="
<<
stot
<<
endl
;
ndb
=
new
Ndb
(
&
cc
,
"TEST_DB"
);
if
(
ndb
->
init
()
!=
0
)
return
ndberror
(
"init"
);
if
(
ndb
->
waitUntilReady
(
30
)
<
0
)
return
ndberror
(
"waitUntilReady"
);
if
((
tcon
=
NdbSchemaCon
::
startSchemaTrans
(
ndb
))
==
0
)
return
ndberror
(
"startSchemaTransaction"
);
if
((
top
=
tcon
->
getNdbSchemaOp
())
==
0
)
...
...
@@ -541,7 +535,6 @@ testcase(Ndb_cluster_connection&cc, int flag)
return
ndberror
(
"key %d not found"
,
k
);
ndbout
<<
"scanned "
<<
key
<<
endl
;
ndb
=
0
;
ndbout
<<
"done"
<<
endl
;
return
0
;
}
...
...
@@ -605,6 +598,7 @@ NDB_COMMAND(testDataBuffers, "testDataBuffers", "testDataBuffers", "testDataBuff
return
NDBT_ProgramExit
(
NDBT_WRONGARGS
);
}
}
unsigned
ok
=
true
;
Ndb_cluster_connection
con
;
...
...
@@ -613,6 +607,20 @@ NDB_COMMAND(testDataBuffers, "testDataBuffers", "testDataBuffers", "testDataBuff
return
NDBT_ProgramExit
(
NDBT_FAILED
);
}
ndb
=
new
Ndb
(
&
con
,
"TEST_DB"
);
if
(
ndb
->
init
()
!=
0
)
{
ndberror
(
"init"
);
ok
=
false
;
goto
out
;
}
if
(
ndb
->
waitUntilReady
(
30
)
<
0
)
{
ndberror
(
"waitUntilReady"
);
ok
=
false
;
goto
out
;
}
for
(
i
=
1
;
0
==
loopcnt
||
i
<=
loopcnt
;
i
++
)
{
ndbout
<<
"=== loop "
<<
i
<<
" ==="
<<
endl
;
for
(
int
flag
=
0
;
flag
<
(
1
<<
testbits
);
flag
++
)
{
...
...
@@ -621,9 +629,13 @@ NDB_COMMAND(testDataBuffers, "testDataBuffers", "testDataBuffers", "testDataBuff
if
(
!
kontinue
)
goto
out
;
}
NdbDictionary
::
Dictionary
*
dict
=
ndb
->
getDictionary
();
dict
->
dropTable
(
tab
);
}
}
out:
delete
ndb
;
return
NDBT_ProgramExit
(
ok
?
NDBT_OK
:
NDBT_FAILED
);
}
...
...
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