~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Brian Aker
  • Date: 2010-04-19 23:33:41 UTC
  • Revision ID: brian@gaz-20100419233341-g1nxdsyu9oo11907
Dead code removal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
               TableShare &share_arg)
57
57
  : table_share(&share_arg), table(0),
58
58
    estimation_rows_to_insert(0), engine(&engine_arg),
59
 
    ref(0), in_range_check_pushed_down(false),
 
59
    ref(0),
60
60
    key_used_on_scan(MAX_KEY), active_index(MAX_KEY),
61
61
    ref_length(sizeof(internal::my_off_t)),
62
62
    inited(NONE),
1112
1112
  int result= 0;
1113
1113
  int range_res= 0;
1114
1114
 
1115
 
  if (!mrr_have_range)
 
1115
  if (not mrr_have_range)
1116
1116
  {
1117
1117
    mrr_have_range= true;
1118
1118
    goto start;
1266
1266
int Cursor::compare_key(key_range *range)
1267
1267
{
1268
1268
  int cmp;
1269
 
  if (!range || in_range_check_pushed_down)
 
1269
  if (not range)
1270
1270
    return 0;                                   // No max range
1271
1271
  cmp= key_cmp(range_key_part, range->key, range->length);
1272
1272
  if (!cmp)
1274
1274
  return cmp;
1275
1275
}
1276
1276
 
1277
 
 
1278
 
/*
1279
 
  Same as compare_key() but doesn't check have in_range_check_pushed_down.
1280
 
  This is used by index condition pushdown implementation.
1281
 
*/
1282
 
 
1283
 
int Cursor::compare_key2(key_range *range)
1284
 
{
1285
 
  int cmp;
1286
 
  if (!range)
1287
 
    return 0;                                   // no max range
1288
 
  cmp= key_cmp(range_key_part, range->key, range->length);
1289
 
  if (!cmp)
1290
 
    cmp= key_compare_result_on_equal;
1291
 
  return cmp;
1292
 
}
1293
 
 
1294
1277
int Cursor::index_read_idx_map(unsigned char * buf, uint32_t index,
1295
1278
                                const unsigned char * key,
1296
1279
                                key_part_map keypart_map,