summaryrefslogtreecommitdiff
path: root/sql/multi_range_read.h
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2010-10-28 20:48:16 +0400
committerSergey Petrunya <psergey@askmonty.org>2010-10-28 20:48:16 +0400
commita88bd5cf56f44f7e1a2714b471f13f123735f864 (patch)
tree66c1adb45eecefd79c1d0f88d0969985a0ebb773 /sql/multi_range_read.h
parentd8efc3b155dc7791b00d5e87ccb8b34d1a12156b (diff)
downloadmariadb-git-a88bd5cf56f44f7e1a2714b471f13f123735f864.tar.gz
DS-MRR improvements:
- address the review feedback (class/var renames) - fix wrong test result (bug in buffer refill logic)
Diffstat (limited to 'sql/multi_range_read.h')
-rw-r--r--sql/multi_range_read.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sql/multi_range_read.h b/sql/multi_range_read.h
index fb2a67b6af1..1f53b212c93 100644
--- a/sql/multi_range_read.h
+++ b/sql/multi_range_read.h
@@ -130,18 +130,18 @@ public:
been reached and get_next() must not be called anymore.
*/
-class Mrr_strategy
+class Mrr_reader
{
public:
virtual int get_next(char **range_info) = 0;
virtual int refill_buffer()=0;
-
- virtual ~Mrr_strategy() {};
+
+ virtual ~Mrr_reader() {}; /* just to remove compiler warning */
};
/* A common base for strategies that do index scans and produce index tuples */
-class Mrr_index_reader : public Mrr_strategy
+class Mrr_index_reader : public Mrr_reader
{
public:
handler *h;
@@ -241,7 +241,7 @@ private:
/* MRR strategy that fetches rowids */
-class Mrr_ordered_rndpos_reader : public Mrr_strategy
+class Mrr_ordered_rndpos_reader : public Mrr_reader
{
public:
int init(handler *h, Mrr_index_reader *index_reader, uint mode,
@@ -271,7 +271,7 @@ private:
uchar *rowids_range_id;
};
-class Mrr_strategy_factory
+class Mrr_reader_factory
{
public:
Mrr_ordered_rndpos_reader ordered_rndpos_reader;
@@ -458,8 +458,8 @@ private:
/* TRUE <=> sort rowids and use rnd_pos() to get and return full records */
//bool do_rndpos_scan;
- Mrr_strategy_factory strategy_factory;
- Mrr_strategy *strategy;
+ Mrr_reader_factory strategy_factory;
+ Mrr_reader *strategy;
Mrr_index_reader *index_strategy;
/* The whole buffer space that we're using */