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
1e0d8099
Commit
1e0d8099
authored
Jul 09, 2007
by
tsmith@sita.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into sita.local:/Users/tsmith/m/bk/maint/50
parents
00c67930
81eb7328
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
375 additions
and
96 deletions
+375
-96
ndb/src/kernel/blocks/dblqh/Dblqh.hpp
ndb/src/kernel/blocks/dblqh/Dblqh.hpp
+3
-2
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+285
-87
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+7
-0
ndb/test/ndbapi/testNodeRestart.cpp
ndb/test/ndbapi/testNodeRestart.cpp
+58
-5
ndb/test/run-test/daily-basic-tests.txt
ndb/test/run-test/daily-basic-tests.txt
+8
-0
sql/ha_ndbcluster_cond.h
sql/ha_ndbcluster_cond.h
+14
-2
No files found.
ndb/src/kernel/blocks/dblqh/Dblqh.hpp
View file @
1e0d8099
...
...
@@ -1617,7 +1617,8 @@ public:
ACTIVE_WRITE_LOG
=
17
,
///< A write operation during
///< writing of log
READ_SR_INVALIDATE_PAGES
=
18
,
WRITE_SR_INVALIDATE_PAGES
=
19
WRITE_SR_INVALIDATE_PAGES
=
19
,
WRITE_SR_INVALIDATE_PAGES_UPDATE_PAGE0
=
20
};
/**
* We have to remember the log pages read.
...
...
@@ -2436,7 +2437,7 @@ private:
void
errorReport
(
Signal
*
signal
,
int
place
);
void
warningReport
(
Signal
*
signal
,
int
place
);
void
invalidateLogAfterLastGCI
(
Signal
*
signal
);
void
readFileInInvalidate
(
Signal
*
signal
);
void
readFileInInvalidate
(
Signal
*
signal
,
bool
stepNext
);
void
exitFromInvalidate
(
Signal
*
signal
);
Uint32
calcPageCheckSum
(
LogPageRecordPtr
logP
);
...
...
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
View file @
1e0d8099
This diff is collapsed.
Click to expand it.
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
1e0d8099
...
...
@@ -883,6 +883,12 @@ void Dbtc::execREAD_NODESCONF(Signal* signal)
hostptr
.
p
->
hostStatus
=
HS_ALIVE
;
c_alive_nodes
.
set
(
i
);
}
//if
if
(
NodeBitmask
::
get
(
readNodes
->
startedNodes
,
i
))
{
jam
();
hostptr
.
p
->
m_nf_bits
=
HostRecord
::
NF_STARTED
;
}
}
//if
}
//for
ndbsttorry010Lab
(
signal
);
...
...
@@ -10223,6 +10229,7 @@ void Dbtc::inithost(Signal* signal)
hostptr
.
p
->
noOfWordsTCINDXCONF
=
0
;
hostptr
.
p
->
noOfPackedWordsLqh
=
0
;
hostptr
.
p
->
hostLqhBlockRef
=
calcLqhBlockRef
(
hostptr
.
i
);
hostptr
.
p
->
m_nf_bits
=
0
;
}
//for
c_alive_nodes
.
clear
();
}
//Dbtc::inithost()
...
...
ndb/test/ndbapi/testNodeRestart.cpp
View file @
1e0d8099
...
...
@@ -943,12 +943,62 @@ int runBug24717(NDBT_Context* ctx, NDBT_Step* step){
restarter
.
startNodes
(
&
nodeId
,
1
);
do
{
for
(
Uint32
i
=
0
;
i
<
100
;
i
++
)
{
hugoTrans
.
pkReadRecords
(
pNdb
,
100
,
1
,
NdbOperation
::
LM_CommittedRead
);
}
}
while
(
restarter
.
waitClusterStarted
(
5
)
!=
0
);
}
return
NDBT_OK
;
}
int
runBug29364
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
int
result
=
NDBT_OK
;
int
loops
=
ctx
->
getNumLoops
();
int
records
=
ctx
->
getNumRecords
();
NdbRestarter
restarter
;
Ndb
*
pNdb
=
GETNDB
(
step
);
HugoTransactions
hugoTrans
(
*
ctx
->
getTab
());
if
(
restarter
.
getNumDbNodes
()
<
4
)
return
NDBT_OK
;
int
dump0
[]
=
{
9000
,
0
}
;
int
dump1
[]
=
{
9001
,
0
}
;
Uint32
ownNode
=
refToNode
(
pNdb
->
getReference
());
dump0
[
1
]
=
ownNode
;
for
(;
loops
;
loops
--
)
{
int
node0
=
restarter
.
getDbNodeId
(
rand
()
%
restarter
.
getNumDbNodes
());
int
node1
=
restarter
.
getRandomNodeOtherNodeGroup
(
node0
,
rand
());
restarter
.
restartOneDbNode
(
node0
,
false
,
true
,
true
);
restarter
.
waitNodesNoStart
(
&
node0
,
1
);
restarter
.
startNodes
(
&
node0
,
1
);
restarter
.
waitClusterStarted
();
restarter
.
restartOneDbNode
(
node1
,
false
,
true
,
true
);
restarter
.
waitNodesNoStart
(
&
node1
,
1
);
if
(
restarter
.
dumpStateOneNode
(
node1
,
dump0
,
2
))
return
NDBT_FAILED
;
restarter
.
startNodes
(
&
node1
,
1
);
do
{
for
(
Uint32
i
=
0
;
i
<
100
;
i
++
)
{
hugoTrans
.
pkReadRecords
(
pNdb
,
100
,
1
,
NdbOperation
::
LM_CommittedRead
);
}
}
while
(
restarter
.
waitClusterStarted
(
5
)
!=
0
);
if
(
restarter
.
dumpStateOneNode
(
node1
,
dump1
,
1
))
return
NDBT_FAILED
;
}
return
NDBT_OK
;
...
...
@@ -1633,6 +1683,9 @@ TESTCASE("Bug27283", ""){
TESTCASE
(
"Bug28717"
,
""
){
INITIALIZER
(
runBug28717
);
}
TESTCASE
(
"Bug29364"
,
""
){
INITIALIZER
(
runBug29364
);
}
NDBT_TESTSUITE_END
(
testNodeRestart
);
int
main
(
int
argc
,
const
char
**
argv
){
...
...
ndb/test/run-test/daily-basic-tests.txt
View file @
1e0d8099
...
...
@@ -477,6 +477,10 @@ max-time: 1000
cmd: testNodeRestart
args: -n Bug24717 T1
max-time: 1000
cmd: testNodeRestart
args: -n Bug29364 T1
max-time: 1000
cmd: testNodeRestart
args: -n Bug25364 T1
...
...
@@ -637,6 +641,10 @@ max-time: 1000
cmd: testNdbApi
args: -n BugBug28443
max-time: 1000
cmd: testNdbApi
args: -n Bug28443
#max-time: 500
#cmd: testInterpreter
#args: T1
...
...
sql/ha_ndbcluster_cond.h
View file @
1e0d8099
...
...
@@ -260,7 +260,19 @@ class Ndb_cond : public Sql_alloc
{
if
(
ndb_item
)
delete
ndb_item
;
ndb_item
=
NULL
;
if
(
next
)
delete
next
;
/*
First item in the linked list deletes all in a loop
Note - doing it recursively causes stack issues for
big IN clauses
*/
Ndb_cond
*
n
=
next
;
while
(
n
)
{
Ndb_cond
*
tmp
=
n
;
n
=
n
->
next
;
tmp
->
next
=
NULL
;
delete
tmp
;
}
next
=
prev
=
NULL
;
};
Ndb_item
*
ndb_item
;
...
...
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