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
aeb7fe83
Commit
aeb7fe83
authored
Sep 02, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0
into eel.(none):/home/jonas/src/mysql-5.0-push
parents
8f0530d0
81f89241
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
7 deletions
+43
-7
ndb/include/kernel/signaldata/SignalData.hpp
ndb/include/kernel/signaldata/SignalData.hpp
+1
-0
ndb/include/kernel/signaldata/StartFragReq.hpp
ndb/include/kernel/signaldata/StartFragReq.hpp
+2
-0
ndb/src/common/debugger/EventLogger.cpp
ndb/src/common/debugger/EventLogger.cpp
+4
-3
ndb/src/common/debugger/signaldata/SignalDataPrint.cpp
ndb/src/common/debugger/signaldata/SignalDataPrint.cpp
+1
-0
ndb/src/common/debugger/signaldata/StartRec.cpp
ndb/src/common/debugger/signaldata/StartRec.cpp
+25
-0
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+9
-3
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+1
-1
No files found.
ndb/include/kernel/signaldata/SignalData.hpp
View file @
aeb7fe83
...
@@ -222,5 +222,6 @@ GSN_PRINT_SIGNATURE(printSCAN_FRAGREQ);
...
@@ -222,5 +222,6 @@ GSN_PRINT_SIGNATURE(printSCAN_FRAGREQ);
GSN_PRINT_SIGNATURE
(
printCONTINUEB_NDBFS
);
GSN_PRINT_SIGNATURE
(
printCONTINUEB_NDBFS
);
GSN_PRINT_SIGNATURE
(
printCONTINUEB_DBDIH
);
GSN_PRINT_SIGNATURE
(
printCONTINUEB_DBDIH
);
GSN_PRINT_SIGNATURE
(
printSTART_FRAG_REQ
);
#endif
#endif
ndb/include/kernel/signaldata/StartFragReq.hpp
View file @
aeb7fe83
...
@@ -32,6 +32,8 @@ class StartFragReq {
...
@@ -32,6 +32,8 @@ class StartFragReq {
public:
public:
STATIC_CONST
(
SignalLength
=
19
);
STATIC_CONST
(
SignalLength
=
19
);
friend
bool
printSTART_FRAG_REQ
(
FILE
*
,
const
Uint32
*
,
Uint32
,
Uint16
);
private:
private:
Uint32
userPtr
;
Uint32
userPtr
;
Uint32
userRef
;
Uint32
userRef
;
...
...
ndb/src/common/debugger/EventLogger.cpp
View file @
aeb7fe83
...
@@ -33,7 +33,6 @@ EventLoggerBase::~EventLoggerBase()
...
@@ -33,7 +33,6 @@ EventLoggerBase::~EventLoggerBase()
}
}
#define QQQQ char *m_text, size_t m_text_len, const Uint32* theData
#define QQQQ char *m_text, size_t m_text_len, const Uint32* theData
void
getTextConnected
(
QQQQ
)
{
void
getTextConnected
(
QQQQ
)
{
...
@@ -434,10 +433,12 @@ void getTextNR_CopyFragsCompleted(QQQQ) {
...
@@ -434,10 +433,12 @@ void getTextNR_CopyFragsCompleted(QQQQ) {
void
getTextLCPFragmentCompleted
(
QQQQ
)
{
void
getTextLCPFragmentCompleted
(
QQQQ
)
{
BaseString
::
snprintf
(
m_text
,
m_text_len
,
BaseString
::
snprintf
(
m_text
,
m_text_len
,
"Table ID = %u, fragment ID = %u has completed LCP "
"Table ID = %u, fragment ID = %u has completed LCP "
"on Node %u"
,
"on Node %u
maxGciStarted: %d maxGciCompleted: %d
"
,
theData
[
2
],
theData
[
2
],
theData
[
3
],
theData
[
3
],
theData
[
1
]);
theData
[
1
],
theData
[
4
],
theData
[
5
]);
}
}
void
getTextTransReportCounters
(
QQQQ
)
{
void
getTextTransReportCounters
(
QQQQ
)
{
// -------------------------------------------------------------------
// -------------------------------------------------------------------
...
...
ndb/src/common/debugger/signaldata/SignalDataPrint.cpp
View file @
aeb7fe83
...
@@ -198,6 +198,7 @@ SignalDataPrintFunctions[] = {
...
@@ -198,6 +198,7 @@ SignalDataPrintFunctions[] = {
,{
GSN_ACC_LOCKREQ
,
printACC_LOCKREQ
}
,{
GSN_ACC_LOCKREQ
,
printACC_LOCKREQ
}
,{
GSN_LQH_TRANSCONF
,
printLQH_TRANSCONF
}
,{
GSN_LQH_TRANSCONF
,
printLQH_TRANSCONF
}
,{
GSN_SCAN_FRAGREQ
,
printSCAN_FRAGREQ
}
,{
GSN_SCAN_FRAGREQ
,
printSCAN_FRAGREQ
}
,{
GSN_START_FRAGREQ
,
printSTART_FRAG_REQ
}
,{
0
,
0
}
,{
0
,
0
}
};
};
...
...
ndb/src/common/debugger/signaldata/StartRec.cpp
View file @
aeb7fe83
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <RefConvert.hpp>
#include <RefConvert.hpp>
#include <signaldata/StartRec.hpp>
#include <signaldata/StartRec.hpp>
#include <signaldata/StartFragReq.hpp>
bool
bool
printSTART_REC_REQ
(
FILE
*
output
,
printSTART_REC_REQ
(
FILE
*
output
,
...
@@ -50,3 +51,27 @@ printSTART_REC_CONF(FILE * output,
...
@@ -50,3 +51,27 @@ printSTART_REC_CONF(FILE * output,
return
true
;
return
true
;
}
}
bool
printSTART_FRAG_REQ
(
FILE
*
output
,
const
Uint32
*
theData
,
Uint32
len
,
Uint16
recBlockNo
)
{
StartFragReq
*
sig
=
(
StartFragReq
*
)
theData
;
fprintf
(
output
,
" table: %d frag: %d lcpId: %d lcpNo: %d #nodes: %d
\n
"
,
sig
->
tableId
,
sig
->
fragId
,
sig
->
lcpId
,
sig
->
lcpNo
,
sig
->
noOfLogNodes
);
for
(
Uint32
i
=
0
;
i
<
sig
->
noOfLogNodes
;
i
++
)
{
fprintf
(
output
,
" (node: %d startGci: %d lastGci: %d)"
,
sig
->
lqhLogNode
[
i
],
sig
->
startGci
[
i
],
sig
->
lastGci
[
i
]);
}
fprintf
(
output
,
"
\n
"
);
return
true
;
}
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
aeb7fe83
...
@@ -9673,6 +9673,9 @@ void Dbdih::execLCP_FRAG_REP(Signal* signal)
...
@@ -9673,6 +9673,9 @@ void Dbdih::execLCP_FRAG_REP(Signal* signal)
}
}
bool
tableDone
=
reportLcpCompletion
(
lcpReport
);
bool
tableDone
=
reportLcpCompletion
(
lcpReport
);
Uint32
started
=
lcpReport
->
maxGciStarted
;
Uint32
completed
=
lcpReport
->
maxGciCompleted
;
if
(
tableDone
){
if
(
tableDone
){
jam
();
jam
();
...
@@ -9706,7 +9709,9 @@ void Dbdih::execLCP_FRAG_REP(Signal* signal)
...
@@ -9706,7 +9709,9 @@ void Dbdih::execLCP_FRAG_REP(Signal* signal)
signal
->
theData
[
1
]
=
nodeId
;
signal
->
theData
[
1
]
=
nodeId
;
signal
->
theData
[
2
]
=
tableId
;
signal
->
theData
[
2
]
=
tableId
;
signal
->
theData
[
3
]
=
fragId
;
signal
->
theData
[
3
]
=
fragId
;
sendSignal
(
CMVMI_REF
,
GSN_EVENT_REP
,
signal
,
4
,
JBB
);
signal
->
theData
[
4
]
=
started
;
signal
->
theData
[
5
]
=
completed
;
sendSignal
(
CMVMI_REF
,
GSN_EVENT_REP
,
signal
,
6
,
JBB
);
#endif
#endif
bool
ok
=
false
;
bool
ok
=
false
;
...
@@ -10903,7 +10908,9 @@ void Dbdih::findMinGci(ReplicaRecordPtr fmgReplicaPtr,
...
@@ -10903,7 +10908,9 @@ void Dbdih::findMinGci(ReplicaRecordPtr fmgReplicaPtr,
lcpNo
=
fmgReplicaPtr
.
p
->
nextLcp
;
lcpNo
=
fmgReplicaPtr
.
p
->
nextLcp
;
do
{
do
{
ndbrequire
(
lcpNo
<
MAX_LCP_STORED
);
ndbrequire
(
lcpNo
<
MAX_LCP_STORED
);
if
(
fmgReplicaPtr
.
p
->
lcpStatus
[
lcpNo
]
==
ZVALID
)
{
if
(
fmgReplicaPtr
.
p
->
lcpStatus
[
lcpNo
]
==
ZVALID
&&
fmgReplicaPtr
.
p
->
maxGciStarted
[
lcpNo
]
<=
coldgcp
)
{
jam
();
jam
();
keepGci
=
fmgReplicaPtr
.
p
->
maxGciCompleted
[
lcpNo
];
keepGci
=
fmgReplicaPtr
.
p
->
maxGciCompleted
[
lcpNo
];
oldestRestorableGci
=
fmgReplicaPtr
.
p
->
maxGciStarted
[
lcpNo
];
oldestRestorableGci
=
fmgReplicaPtr
.
p
->
maxGciStarted
[
lcpNo
];
...
@@ -10911,7 +10918,6 @@ void Dbdih::findMinGci(ReplicaRecordPtr fmgReplicaPtr,
...
@@ -10911,7 +10918,6 @@ void Dbdih::findMinGci(ReplicaRecordPtr fmgReplicaPtr,
return
;
return
;
}
else
{
}
else
{
jam
();
jam
();
ndbrequire
(
fmgReplicaPtr
.
p
->
lcpStatus
[
lcpNo
]
==
ZINVALID
);
if
(
fmgReplicaPtr
.
p
->
createGci
[
0
]
==
fmgReplicaPtr
.
p
->
initialGci
)
{
if
(
fmgReplicaPtr
.
p
->
createGci
[
0
]
==
fmgReplicaPtr
.
p
->
initialGci
)
{
jam
();
jam
();
/*-------------------------------------------------------------------
/*-------------------------------------------------------------------
...
...
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
aeb7fe83
...
@@ -4454,7 +4454,7 @@ Dbtc::DIVER_node_fail_handling(Signal* signal, UintR Tgci)
...
@@ -4454,7 +4454,7 @@ Dbtc::DIVER_node_fail_handling(Signal* signal, UintR Tgci)
*------------------------------------------------------------------------*/
*------------------------------------------------------------------------*/
tabortInd
=
ZFALSE
;
tabortInd
=
ZFALSE
;
setupFailData
(
signal
);
setupFailData
(
signal
);
if
(
tabortInd
==
ZFALSE
)
{
if
(
false
&&
tabortInd
==
ZFALSE
)
{
jam
();
jam
();
commitGciHandling
(
signal
,
Tgci
);
commitGciHandling
(
signal
,
Tgci
);
toCommitHandlingLab
(
signal
);
toCommitHandlingLab
(
signal
);
...
...
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