~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/ha_heap.h

Heap builds clean.
Moved my_handler.c back to mysys - I missed that heap also uses it.

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, bool all_parts) const
 
58
  uint32_t index_flags(uint inx, uint part __attribute__((__unused__)),
 
59
                       bool all_parts __attribute__((__unused__))) const
59
60
  {
60
61
    return ((table_share->key_info[inx].algorithm == HA_KEY_ALG_BTREE) ?
61
62
            HA_READ_NEXT | HA_READ_PREV | HA_READ_ORDER | HA_READ_RANGE :
66
67
  uint max_supported_key_part_length() const { return MAX_KEY_LENGTH; }
67
68
  double scan_time()
68
69
  { return (double) (stats.records+stats.deleted) / 20.0+10; }
69
 
  double read_time(uint index, uint ranges, ha_rows rows)
 
70
  double read_time(uint index __attribute__((__unused__)),
 
71
                   uint ranges __attribute__((__unused__)),
 
72
                   ha_rows rows)
70
73
  { return (double) rows /  20.0+1; }
71
74
 
72
75
  int open(const char *name, int mode, uint test_if_locked);