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
499ac045
Commit
499ac045
authored
Sep 07, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added use of buffer argument in index_read
parent
41b9a9c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+20
-5
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+4
-0
No files found.
sql/ha_ndbcluster.cc
View file @
499ac045
...
@@ -1918,7 +1918,7 @@ int ha_ndbcluster::index_read(byte *buf,
...
@@ -1918,7 +1918,7 @@ int ha_ndbcluster::index_read(byte *buf,
start_key
.
key
=
key
;
start_key
.
key
=
key
;
start_key
.
length
=
key_len
;
start_key
.
length
=
key_len
;
start_key
.
flag
=
find_flag
;
start_key
.
flag
=
find_flag
;
DBUG_RETURN
(
read_range_first
(
&
start_key
,
NULL
,
false
,
true
));
DBUG_RETURN
(
read_range_first
_to_buf
(
&
start_key
,
NULL
,
false
,
true
,
buf
));
}
}
...
@@ -1972,10 +1972,25 @@ int ha_ndbcluster::read_range_first(const key_range *start_key,
...
@@ -1972,10 +1972,25 @@ int ha_ndbcluster::read_range_first(const key_range *start_key,
const
key_range
*
end_key
,
const
key_range
*
end_key
,
bool
eq_range
,
bool
sorted
)
bool
eq_range
,
bool
sorted
)
{
{
KEY
*
key_info
;
int
error
=
1
;
byte
*
buf
=
table
->
record
[
0
];
byte
*
buf
=
table
->
record
[
0
];
DBUG_ENTER
(
"ha_ndbcluster::read_range_first"
);
DBUG_ENTER
(
"ha_ndbcluster::read_range_first"
);
DBUG_RETURN
(
read_range_first_to_buf
(
start_key
,
end_key
,
eq_range
,
sorted
,
buf
));
}
inline
int
ha_ndbcluster
::
read_range_first_to_buf
(
const
key_range
*
start_key
,
const
key_range
*
end_key
,
bool
eq_range
,
bool
sorted
,
byte
*
buf
)
{
KEY
*
key_info
;
int
error
=
1
;
DBUG_ENTER
(
"ha_ndbcluster::read_range_first_to_buf"
);
DBUG_PRINT
(
"info"
,
(
"eq_range: %d, sorted: %d"
,
eq_range
,
sorted
));
DBUG_PRINT
(
"info"
,
(
"eq_range: %d, sorted: %d"
,
eq_range
,
sorted
));
if
(
m_active_cursor
)
if
(
m_active_cursor
)
...
...
sql/ha_ndbcluster.h
View file @
499ac045
...
@@ -93,6 +93,10 @@ class ha_ndbcluster: public handler
...
@@ -93,6 +93,10 @@ class ha_ndbcluster: public handler
int
read_range_first
(
const
key_range
*
start_key
,
int
read_range_first
(
const
key_range
*
start_key
,
const
key_range
*
end_key
,
const
key_range
*
end_key
,
bool
eq_range
,
bool
sorted
);
bool
eq_range
,
bool
sorted
);
int
read_range_first_to_buf
(
const
key_range
*
start_key
,
const
key_range
*
end_key
,
bool
eq_range
,
bool
sorted
,
byte
*
buf
);
int
read_range_next
();
int
read_range_next
();
bool
get_error_message
(
int
error
,
String
*
buf
);
bool
get_error_message
(
int
error
,
String
*
buf
);
...
...
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