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
f9d93917
Commit
f9d93917
authored
Jul 12, 2012
by
Annamalai Gurusami
Browse files
Options
Browse Files
Download
Plain Diff
Merging from mysql-5.1 to mysql-5.5.
parents
425f07ea
357a008a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
sql/handler.cc
sql/handler.cc
+27
-2
No files found.
sql/handler.cc
View file @
f9d93917
...
...
@@ -4655,7 +4655,19 @@ int handler::read_range_first(const key_range *start_key,
?
HA_ERR_END_OF_FILE
:
result
);
DBUG_RETURN
(
compare_key
(
end_range
)
<=
0
?
0
:
HA_ERR_END_OF_FILE
);
if
(
compare_key
(
end_range
)
<=
0
)
{
DBUG_RETURN
(
0
);
}
else
{
/*
The last read row does not fall in the range. So request
storage engine to release row lock if possible.
*/
unlock_row
();
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
}
}
...
...
@@ -4687,7 +4699,20 @@ int handler::read_range_next()
result
=
index_next
(
table
->
record
[
0
]);
if
(
result
)
DBUG_RETURN
(
result
);
DBUG_RETURN
(
compare_key
(
end_range
)
<=
0
?
0
:
HA_ERR_END_OF_FILE
);
if
(
compare_key
(
end_range
)
<=
0
)
{
DBUG_RETURN
(
0
);
}
else
{
/*
The last read row does not fall in the range. So request
storage engine to release row lock if possible.
*/
unlock_row
();
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
}
}
...
...
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