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
827f25e0
Commit
827f25e0
authored
Jun 30, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into perch.ndb.mysql.com:/home/jonas/src/mysql-4.1
parents
f25b4e04
09c66991
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
16 deletions
+36
-16
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+12
-0
ndb/src/kernel/vm/RequestTracker.hpp
ndb/src/kernel/vm/RequestTracker.hpp
+2
-2
ndb/src/kernel/vm/SafeCounter.hpp
ndb/src/kernel/vm/SafeCounter.hpp
+14
-8
ndb/src/mgmsrv/ConfigInfo.cpp
ndb/src/mgmsrv/ConfigInfo.cpp
+7
-6
ndb/test/ndbapi/testNodeRestart.cpp
ndb/test/ndbapi/testNodeRestart.cpp
+1
-0
No files found.
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
827f25e0
...
@@ -6978,6 +6978,18 @@ void Dbtc::checkScanActiveInFailedLqh(Signal* signal,
...
@@ -6978,6 +6978,18 @@ void Dbtc::checkScanActiveInFailedLqh(Signal* signal,
found
=
true
;
found
=
true
;
}
}
}
}
ScanFragList
deliv
(
c_scan_frag_pool
,
scanptr
.
p
->
m_delivered_scan_frags
);
for
(
deliv
.
first
(
ptr
);
!
ptr
.
isNull
();
deliv
.
next
(
ptr
))
{
jam
();
if
(
refToNode
(
ptr
.
p
->
lqhBlockref
)
==
failedNodeId
)
{
jam
();
found
=
true
;
break
;
}
}
}
}
if
(
found
){
if
(
found
){
jam
();
jam
();
...
...
ndb/src/kernel/vm/RequestTracker.hpp
View file @
827f25e0
...
@@ -26,12 +26,12 @@ public:
...
@@ -26,12 +26,12 @@ public:
void
init
()
{
m_confs
.
clear
();
m_nRefs
=
0
;
}
void
init
()
{
m_confs
.
clear
();
m_nRefs
=
0
;
}
template
<
typename
SignalClass
>
template
<
typename
SignalClass
>
void
init
(
SafeCounterManager
&
mgr
,
bool
init
(
SafeCounterManager
&
mgr
,
NodeReceiverGroup
rg
,
Uint16
GSN
,
Uint32
senderData
)
NodeReceiverGroup
rg
,
Uint16
GSN
,
Uint32
senderData
)
{
{
init
();
init
();
SafeCounter
tmp
(
mgr
,
m_sc
);
SafeCounter
tmp
(
mgr
,
m_sc
);
tmp
.
init
<
SignalClass
>
(
rg
,
GSN
,
senderData
);
return
tmp
.
init
<
SignalClass
>
(
rg
,
GSN
,
senderData
);
}
}
bool
ignoreRef
(
SafeCounterManager
&
mgr
,
Uint32
nodeId
)
bool
ignoreRef
(
SafeCounterManager
&
mgr
,
Uint32
nodeId
)
...
...
ndb/src/kernel/vm/SafeCounter.hpp
View file @
827f25e0
...
@@ -230,10 +230,13 @@ inline
...
@@ -230,10 +230,13 @@ inline
bool
bool
SafeCounter
::
init
(
NodeReceiverGroup
rg
,
Uint16
GSN
,
Uint32
senderData
){
SafeCounter
::
init
(
NodeReceiverGroup
rg
,
Uint16
GSN
,
Uint32
senderData
){
bool
b
=
init
<
Ref
>
(
rg
.
m_block
,
GSN
,
senderData
);
if
(
init
<
Ref
>
(
rg
.
m_block
,
GSN
,
senderData
))
m_nodes
=
rg
.
m_nodes
;
{
m_count
=
m_nodes
.
count
();
m_nodes
=
rg
.
m_nodes
;
return
b
;
m_count
=
m_nodes
.
count
();
return
true
;
}
return
false
;
}
}
template
<
typename
Ref
>
template
<
typename
Ref
>
...
@@ -241,10 +244,13 @@ inline
...
@@ -241,10 +244,13 @@ inline
bool
bool
SafeCounter
::
init
(
NodeReceiverGroup
rg
,
Uint32
senderData
){
SafeCounter
::
init
(
NodeReceiverGroup
rg
,
Uint32
senderData
){
bool
b
=
init
<
Ref
>
(
rg
.
m_block
,
Ref
::
GSN
,
senderData
);
if
(
init
<
Ref
>
(
rg
.
m_block
,
Ref
::
GSN
,
senderData
))
m_nodes
=
rg
.
m_nodes
;
{
m_count
=
m_nodes
.
count
();
m_nodes
=
rg
.
m_nodes
;
return
b
;
m_count
=
m_nodes
.
count
();
return
true
;
}
return
false
;
}
}
inline
inline
...
...
ndb/src/mgmsrv/ConfigInfo.cpp
View file @
827f25e0
...
@@ -30,6 +30,7 @@ extern my_bool opt_core;
...
@@ -30,6 +30,7 @@ extern my_bool opt_core;
#define MAX_LINE_LENGTH 255
#define MAX_LINE_LENGTH 255
#define KEY_INTERNAL 0
#define KEY_INTERNAL 0
#define MAX_INT_RNIL 0xfffffeff
#define MAX_INT_RNIL 0xfffffeff
#define MAX_PORT_NO 65535
#define _STR_VALUE(x) #x
#define _STR_VALUE(x) #x
#define STR_VALUE(x) _STR_VALUE(x)
#define STR_VALUE(x) _STR_VALUE(x)
...
@@ -426,7 +427,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -426,7 +427,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
CI_INT
,
ConfigInfo
::
CI_INT
,
UNDEFINED
,
UNDEFINED
,
"1"
,
"1"
,
STR_VALUE
(
MAX_
INT_RNIL
)
},
STR_VALUE
(
MAX_
PORT_NO
)
},
{
{
CFG_DB_NO_REPLICAS
,
CFG_DB_NO_REPLICAS
,
...
@@ -1430,7 +1431,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1430,7 +1431,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
CI_INT
,
ConfigInfo
::
CI_INT
,
NDB_PORT
,
NDB_PORT
,
"0"
,
"0"
,
STR_VALUE
(
MAX_
INT_RNIL
)
},
STR_VALUE
(
MAX_
PORT_NO
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -1442,7 +1443,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1442,7 +1443,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
CI_INT
,
ConfigInfo
::
CI_INT
,
UNDEFINED
,
UNDEFINED
,
"0"
,
"0"
,
STR_VALUE
(
MAX_
INT_RNIL
)
},
STR_VALUE
(
MAX_
PORT_NO
)
},
{
{
CFG_NODE_ARBIT_RANK
,
CFG_NODE_ARBIT_RANK
,
...
@@ -1573,7 +1574,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1573,7 +1574,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
CI_INT
,
ConfigInfo
::
CI_INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
STR_VALUE
(
MAX_
INT_RNIL
)
},
STR_VALUE
(
MAX_
PORT_NO
)
},
{
{
CFG_TCP_SEND_BUFFER_SIZE
,
CFG_TCP_SEND_BUFFER_SIZE
,
...
@@ -1679,7 +1680,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1679,7 +1680,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
CI_INT
,
ConfigInfo
::
CI_INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
STR_VALUE
(
MAX_
INT_RNIL
)
},
STR_VALUE
(
MAX_
PORT_NO
)
},
{
{
CFG_SHM_SIGNUM
,
CFG_SHM_SIGNUM
,
...
@@ -1879,7 +1880,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1879,7 +1880,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
CI_INT
,
ConfigInfo
::
CI_INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
STR_VALUE
(
MAX_
INT_RNIL
)
},
STR_VALUE
(
MAX_
PORT_NO
)
},
{
{
CFG_SCI_HOST1_ID_0
,
CFG_SCI_HOST1_ID_0
,
...
...
ndb/test/ndbapi/testNodeRestart.cpp
View file @
827f25e0
...
@@ -294,6 +294,7 @@ int runRestarts(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -294,6 +294,7 @@ int runRestarts(NDBT_Context* ctx, NDBT_Step* step){
}
}
i
++
;
i
++
;
}
}
ctx
->
stopTest
();
return
result
;
return
result
;
}
}
...
...
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