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
f54b1e0d
Commit
f54b1e0d
authored
Jun 28, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb -
50->51 merge of bug#20442, force close scan (with locks)
parent
ff2528f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
storage/ndb/src/ndbapi/NdbScanOperation.cpp
storage/ndb/src/ndbapi/NdbScanOperation.cpp
+3
-8
No files found.
storage/ndb/src/ndbapi/NdbScanOperation.cpp
View file @
f54b1e0d
...
@@ -1587,7 +1587,6 @@ NdbScanOperation::close_impl(TransporterFacade* tp, bool forceSend,
...
@@ -1587,7 +1587,6 @@ NdbScanOperation::close_impl(TransporterFacade* tp, bool forceSend,
if
(
holdLock
&&
theError
.
code
==
0
&&
if
(
holdLock
&&
theError
.
code
==
0
&&
(
m_sent_receivers_count
+
m_conf_receivers_count
+
m_api_receivers_count
))
(
m_sent_receivers_count
+
m_conf_receivers_count
+
m_api_receivers_count
))
{
{
TransporterFacade
*
tp
=
TransporterFacade
::
instance
();
NdbApiSignal
tSignal
(
theNdb
->
theMyRef
);
NdbApiSignal
tSignal
(
theNdb
->
theMyRef
);
tSignal
.
setSignal
(
GSN_SCAN_NEXTREQ
);
tSignal
.
setSignal
(
GSN_SCAN_NEXTREQ
);
...
@@ -1605,7 +1604,6 @@ NdbScanOperation::close_impl(TransporterFacade* tp, bool forceSend,
...
@@ -1605,7 +1604,6 @@ NdbScanOperation::close_impl(TransporterFacade* tp, bool forceSend,
setErrorCode
(
4008
);
setErrorCode
(
4008
);
return
-
1
;
return
-
1
;
}
}
checkForceSend
(
forceSend
);
/**
/**
* If no receiver is outstanding...
* If no receiver is outstanding...
...
@@ -1615,9 +1613,7 @@ NdbScanOperation::close_impl(TransporterFacade* tp, bool forceSend,
...
@@ -1615,9 +1613,7 @@ NdbScanOperation::close_impl(TransporterFacade* tp, bool forceSend,
while
(
theError
.
code
==
0
&&
(
m_sent_receivers_count
+
m_conf_receivers_count
))
while
(
theError
.
code
==
0
&&
(
m_sent_receivers_count
+
m_conf_receivers_count
))
{
{
theNdb
->
theImpl
->
theWaiter
.
m_node
=
nodeId
;
int
return_code
=
poll_guard
->
wait_scan
(
WAITFOR_SCAN_TIMEOUT
,
nodeId
,
forceSend
);
theNdb
->
theImpl
->
theWaiter
.
m_state
=
WAIT_SCAN
;
int
return_code
=
theNdb
->
receiveResponse
(
WAITFOR_SCAN_TIMEOUT
);
switch
(
return_code
){
switch
(
return_code
){
case
0
:
case
0
:
break
;
break
;
...
@@ -1639,8 +1635,7 @@ NdbScanOperation::close_impl(TransporterFacade* tp, bool forceSend,
...
@@ -1639,8 +1635,7 @@ NdbScanOperation::close_impl(TransporterFacade* tp, bool forceSend,
*/
*/
while
(
theError
.
code
==
0
&&
m_sent_receivers_count
)
while
(
theError
.
code
==
0
&&
m_sent_receivers_count
)
{
{
int
return_code
=
poll_guard
->
wait_scan
(
WAITFOR_SCAN_TIMEOUT
,
nodeId
,
int
return_code
=
poll_guard
->
wait_scan
(
WAITFOR_SCAN_TIMEOUT
,
nodeId
,
forceSend
);
false
);
switch
(
return_code
){
switch
(
return_code
){
case
0
:
case
0
:
break
;
break
;
...
...
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