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
84883229
Commit
84883229
authored
Jun 22, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wl1671 - bug fix
parent
46455f57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
14 deletions
+33
-14
ndb/src/common/debugger/signaldata/ScanTab.cpp
ndb/src/common/debugger/signaldata/ScanTab.cpp
+31
-12
ndb/src/ndbapi/NdbScanOperation.cpp
ndb/src/ndbapi/NdbScanOperation.cpp
+2
-2
No files found.
ndb/src/common/debugger/signaldata/ScanTab.cpp
View file @
84883229
...
...
@@ -74,17 +74,28 @@ printSCANTABCONF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 recei
fprintf
(
output
,
" transId(1, 2): (H
\'
%.8x, H
\'
%.8x)
\n
"
,
sig
->
transId1
,
sig
->
transId2
);
fprintf
(
output
,
" requestInfo: H
\'
%.8x(EndOfData: %d)
\n
"
,
requestInfo
,
(
requestInfo
&
ScanTabConf
::
EndOfData
!=
0
));
#if 0
fprintf(output, " Operation(s):\n");
for(int i = 0; i<16; i++){
fprintf(output, " [%.2u]ix=%d l=%.2d,",
i, sig->getIdx(sig->operLenAndIdx[i]), sig->getLen(sig->operLenAndIdx[i]));
if (((i+1) % 4) == 0)
fprintf(output, "\n");
fprintf
(
output
,
" requestInfo: Eod: %d OpCount: %d
\n
"
,
(
requestInfo
&
ScanTabConf
::
EndOfData
==
ScanTabConf
::
EndOfData
),
(
requestInfo
&
(
~
ScanTabConf
::
EndOfData
)));
size_t
op_count
=
requestInfo
&
(
~
ScanTabConf
::
EndOfData
);
if
(
op_count
){
fprintf
(
output
,
" Operation(s) [api tc rows len]:
\n
"
);
ScanTabConf
::
OpData
*
op
=
(
ScanTabConf
::
OpData
*
)
(
theData
+
ScanTabConf
::
SignalLength
);
for
(
int
i
=
0
;
i
<
op_count
;
i
++
){
if
(
op
->
info
!=
ScanTabConf
::
EndOfData
)
fprintf
(
output
,
" [0x%x 0x%x %d %d]"
,
op
->
apiPtrI
,
op
->
tcPtrI
,
ScanTabConf
::
getRows
(
op
->
info
),
ScanTabConf
::
getLength
(
op
->
info
));
else
fprintf
(
output
,
" [0x%x 0x%x eod]"
,
op
->
apiPtrI
,
op
->
tcPtrI
);
op
++
;
}
fprintf
(
output
,
"
\n
"
);
}
#endif
return
false
;
}
...
...
@@ -146,13 +157,21 @@ printSCANNEXTREQ(FILE * output, const Uint32 * theData, Uint32 len, Uint16 recei
if
(
receiverBlockNo
==
DBTC
){
const
ScanNextReq
*
const
sig
=
(
ScanNextReq
*
)
theData
;
fprintf
(
output
,
" a
ip
ConnectPtr: H
\'
%.8x
\n
"
,
fprintf
(
output
,
" a
pi
ConnectPtr: H
\'
%.8x
\n
"
,
sig
->
apiConnectPtr
);
fprintf
(
output
,
" transId(1, 2): (H
\'
%.8x, H
\'
%.8x)
\n
"
,
fprintf
(
output
,
" transId(1, 2): (H
\'
%.8x, H
\'
%.8x)
"
,
sig
->
transId1
,
sig
->
transId2
);
fprintf
(
output
,
" Stop this scan: %u
\n
"
,
sig
->
stopScan
);
const
Uint32
*
ops
=
theData
+
ScanNextReq
::
SignalLength
;
if
(
len
>
ScanNextReq
::
SignalLength
){
fprintf
(
output
,
" tcFragPtr(s): "
);
for
(
size_t
i
=
ScanNextReq
::
SignalLength
;
i
<
len
;
i
++
)
fprintf
(
output
,
" 0x%x"
,
*
ops
++
);
fprintf
(
output
,
"
\n
"
);
}
}
if
(
receiverBlockNo
==
DBLQH
){
return
printSCANFRAGNEXTREQ
(
output
,
theData
,
len
,
receiverBlockNo
);
...
...
ndb/src/ndbapi/NdbScanOperation.cpp
View file @
84883229
...
...
@@ -475,11 +475,11 @@ int NdbScanOperation::nextResult(bool fetchAllowed)
/**
* We have advanced atleast one bucket
*/
if
(
!
fetchAllowed
){
if
(
!
fetchAllowed
||
!
retVal
){
m_current_api_receiver
=
idx
;
return
retVal
;
}
Uint32
nodeId
=
theNdbCon
->
theDBnode
;
TransporterFacade
*
tp
=
TransporterFacade
::
instance
();
Guard
guard
(
tp
->
theMutexPtr
);
...
...
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