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
65c9dcc0
Commit
65c9dcc0
authored
Feb 07, 2007
by
mskold/marty@linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1-ndb
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
parents
7e29b2fe
8dd443f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-4
storage/ndb/include/ndbapi/NdbScanOperation.hpp
storage/ndb/include/ndbapi/NdbScanOperation.hpp
+2
-1
storage/ndb/src/ndbapi/NdbScanOperation.cpp
storage/ndb/src/ndbapi/NdbScanOperation.cpp
+8
-2
No files found.
sql/ha_ndbcluster.cc
View file @
65c9dcc0
...
...
@@ -2281,8 +2281,7 @@ int ha_ndbcluster::set_bounds(NdbIndexScanOperation *op,
DBUG_PRINT
(
"error"
,
(
"key %d unknown flag %d"
,
j
,
p
.
key
->
flag
));
DBUG_ASSERT
(
FALSE
);
// Stop setting bounds but continue with what we have
op
->
end_of_bound
(
range_no
);
DBUG_RETURN
(
0
);
DBUG_RETURN
(
op
->
end_of_bound
(
range_no
));
}
}
}
...
...
@@ -2329,8 +2328,7 @@ int ha_ndbcluster::set_bounds(NdbIndexScanOperation *op,
tot_len
+=
part_store_len
;
}
op
->
end_of_bound
(
range_no
);
DBUG_RETURN
(
0
);
DBUG_RETURN
(
op
->
end_of_bound
(
range_no
));
}
/*
...
...
storage/ndb/include/ndbapi/NdbScanOperation.hpp
View file @
65c9dcc0
...
...
@@ -38,7 +38,8 @@ class NdbScanOperation : public NdbOperation {
public:
/**
* Scan flags. OR-ed together and passed as second argument to
* readTuples.
* readTuples. Note that SF_MultiRange has to be set if several
* ranges (bounds) are to be passed.
*/
enum
ScanFlag
{
SF_TupScan
=
(
1
<<
16
),
// scan TUP order
...
...
storage/ndb/src/ndbapi/NdbScanOperation.cpp
View file @
65c9dcc0
...
...
@@ -1793,6 +1793,12 @@ NdbIndexScanOperation::reset_bounds(bool forceSend){
int
NdbIndexScanOperation
::
end_of_bound
(
Uint32
no
)
{
DBUG_ENTER
(
"end_of_bound"
);
DBUG_PRINT
(
"info"
,
(
"Range number %u"
,
no
));
/* Check that SF_MultiRange has been specified if more
than one range is specified */
if
(
no
>
0
&&
!
m_multi_range
)
DBUG_RETURN
(
-
1
);
if
(
no
<
(
1
<<
13
))
// Only 12-bits no of ranges
{
Uint32
bound_head
=
*
m_first_bound_word
;
...
...
@@ -1801,9 +1807,9 @@ NdbIndexScanOperation::end_of_bound(Uint32 no)
m_first_bound_word
=
theKEYINFOptr
+
theTotalNrOfKeyWordInSignal
;;
m_this_bound_start
=
theTupKeyLen
;
return
0
;
DBUG_RETURN
(
0
)
;
}
return
-
1
;
DBUG_RETURN
(
-
1
)
;
}
int
...
...
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