~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/ha_heap.h

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
            HA_REC_NOT_IN_SEQ | HA_CAN_INSERT_DELAYED | HA_NO_TRANSACTIONS |
56
56
            HA_HAS_RECORDS | HA_STATS_RECORDS_IS_EXACT);
57
57
  }
58
 
  uint32_t index_flags(uint inx, uint part __attribute__((__unused__)),
59
 
                       bool all_parts __attribute__((__unused__))) const
 
58
  uint32_t index_flags(uint inx, uint part __attribute__((unused)),
 
59
                       bool all_parts __attribute__((unused))) const
60
60
  {
61
61
    return ((table_share->key_info[inx].algorithm == HA_KEY_ALG_BTREE) ?
62
62
            HA_READ_NEXT | HA_READ_PREV | HA_READ_ORDER | HA_READ_RANGE :
67
67
  uint max_supported_key_part_length() const { return MAX_KEY_LENGTH; }
68
68
  double scan_time()
69
69
  { return (double) (stats.records+stats.deleted) / 20.0+10; }
70
 
  double read_time(uint index __attribute__((__unused__)),
71
 
                   uint ranges __attribute__((__unused__)),
 
70
  double read_time(uint index __attribute__((unused)),
 
71
                   uint ranges __attribute__((unused)),
72
72
                   ha_rows rows)
73
73
  { return (double) rows /  20.0+1; }
74
74