summaryrefslogtreecommitdiff
path: root/sql/multi_range_read.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2010-12-17 14:58:08 +0300
committerSergey Petrunya <psergey@askmonty.org>2010-12-17 14:58:08 +0300
commit81eb82b47d015ca1a5bcca35e7569c665332ac31 (patch)
tree6b755589a72afcca104f6286663f56054f8864cb /sql/multi_range_read.cc
parent80cbf3a1c22e6ac854329fa7d61868e5be96f8ce (diff)
downloadmariadb-git-81eb82b47d015ca1a5bcca35e7569c665332ac31.tar.gz
Fix a compiler warning on sparc32
Diffstat (limited to 'sql/multi_range_read.cc')
-rw-r--r--sql/multi_range_read.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/multi_range_read.cc b/sql/multi_range_read.cc
index 060aac2d7ba..0100cbcb9d5 100644
--- a/sql/multi_range_read.cc
+++ b/sql/multi_range_read.cc
@@ -252,7 +252,14 @@ int handler::multi_range_read_next(char **range_info)
else
{
if (was_semi_consistent_read())
+ {
+ /*
+ The following assignment is redundant, but for extra safety and to
+ remove the compiler warning:
+ */
+ range_res= FALSE;
goto scan_it_again;
+ }
/*
We need to set this for the last range only, but checking this
condition is more expensive than just setting the result code.