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
9d72e8e4
Commit
9d72e8e4
authored
Jul 06, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testScan -n ScanReadError5023
Don't wait for more SCANTAB_CONF when received SCAN_TABREF
parent
596d010a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
ndb/src/ndbapi/NdbScanOperation.cpp
ndb/src/ndbapi/NdbScanOperation.cpp
+17
-2
No files found.
ndb/src/ndbapi/NdbScanOperation.cpp
View file @
9d72e8e4
...
...
@@ -492,6 +492,7 @@ int NdbScanOperation::nextResult(bool fetchAllowed)
*/
if
(
!
fetchAllowed
||
!
retVal
){
m_current_api_receiver
=
idx
;
if
(
DEBUG_NEXT_RESULT
)
ndbout_c
(
"return %d"
,
retVal
);
return
retVal
;
}
...
...
@@ -507,6 +508,7 @@ int NdbScanOperation::nextResult(bool fetchAllowed)
do
{
if
(
theError
.
code
){
setErrorCode
(
theError
.
code
);
if
(
DEBUG_NEXT_RESULT
)
ndbout_c
(
"return -1"
);
return
-
1
;
}
...
...
@@ -546,6 +548,7 @@ int NdbScanOperation::nextResult(bool fetchAllowed)
int
return_code
=
theNdb
->
receiveResponse
(
WAITFOR_SCAN_TIMEOUT
);
if
(
return_code
==
0
&&
seq
==
tp
->
getNodeSequence
(
nodeId
))
{
theError
.
code
=
-
1
;
// make sure user gets error if he tries again
if
(
DEBUG_NEXT_RESULT
)
ndbout_c
(
"return 1"
);
return
1
;
}
retVal
=
-
1
;
//return_code;
...
...
@@ -578,6 +581,7 @@ int NdbScanOperation::nextResult(bool fetchAllowed)
case
0
:
case
1
:
case
2
:
if
(
DEBUG_NEXT_RESULT
)
ndbout_c
(
"return %d"
,
retVal
);
return
retVal
;
case
-
1
:
setErrorCode
(
4008
);
// Timeout
...
...
@@ -591,6 +595,7 @@ int NdbScanOperation::nextResult(bool fetchAllowed)
theNdbCon
->
theTransactionIsStarted
=
false
;
theNdbCon
->
theReleaseOnClose
=
true
;
if
(
DEBUG_NEXT_RESULT
)
ndbout_c
(
"return -1"
,
retVal
);
return
-
1
;
}
...
...
@@ -662,8 +667,18 @@ NdbScanOperation::doSend(int ProcessorId)
void
NdbScanOperation
::
closeScan
()
{
int
self
=
pthread_self
()
;
if
(
m_transConnection
)
do
{
if
(
DEBUG_NEXT_RESULT
)
ndbout_c
(
"closeScan() theError.code = %d "
"m_api_receivers_count = %d "
"m_conf_receivers_count = %d "
"m_sent_receivers_count = %d"
,
theError
.
code
,
m_api_receivers_count
,
m_conf_receivers_count
,
m_sent_receivers_count
);
TransporterFacade
*
tp
=
TransporterFacade
::
instance
();
Guard
guard
(
tp
->
theMutexPtr
);
...
...
@@ -675,7 +690,7 @@ void NdbScanOperation::closeScan()
break
;
}
while
(
m_sent_receivers_count
){
while
(
theError
.
code
==
0
&&
m_sent_receivers_count
){
theNdb
->
theWaiter
.
m_node
=
nodeId
;
theNdb
->
theWaiter
.
m_state
=
WAIT_SCAN
;
int
return_code
=
theNdb
->
receiveResponse
(
WAITFOR_SCAN_TIMEOUT
);
...
...
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