51#define HP_MAX_LEVELS 4
52#define HP_PTRS_IN_NOD 128
135 uchar *recpos){
nullptr};
230 HP_SHARE **share,
bool *created_new_share);
235extern int heap_rename(
const char *old_name,
const char *new_name);
int heap_scan(HP_INFO *info, uchar *record)
Definition: hp_scan.cc:48
#define HP_PTRS_IN_NOD
Definition: heap.h:52
int heap_panic(enum ha_panic_function flag)
void heap_update_auto_increment(HP_INFO *info, const uchar *record)
Definition: hp_hash.cc:750
HP_INFO * heap_open_from_share_and_register(HP_SHARE *share, int mode)
Definition: hp_open.cc:78
void heap_clear_keys(HP_INFO *info)
Definition: hp_clear.cc:67
int heap_rrnd(HP_INFO *info, uchar *buf, HP_HEAP_POSITION *pos)
Definition: hp_rrnd.cc:37
void heap_drop_table(HP_INFO *info)
Definition: hp_create.cc:305
int heap_rename(const char *old_name, const char *new_name)
Definition: hp_rename.cc:33
int heap_disable_indexes(HP_INFO *info)
Definition: hp_clear.cc:118
int heap_check_heap(HP_INFO *info, bool print_status)
Definition: _check.cc:53
uchar * HEAP_PTR
Definition: heap.h:187
int heap_rnext(HP_INFO *info, uchar *record)
Definition: hp_rnext.cc:30
ha_rows hp_rb_records_in_range(HP_INFO *info, int inx, key_range *min_key, key_range *max_key)
Definition: hp_hash.cc:66
int heap_enable_indexes(HP_INFO *info)
Definition: hp_clear.cc:148
int heap_rprev(HP_INFO *info, uchar *record)
Definition: hp_rprev.cc:30
HP_INFO * heap_open_from_share(HP_SHARE *share, int mode)
Definition: hp_open.cc:42
#define HP_MAX_LEVELS
Definition: heap.h:51
void heap_clear(HP_INFO *info)
Definition: hp_clear.cc:36
HP_INFO * heap_open(const char *name, int mode)
Definition: hp_open.cc:116
int heap_rfirst(HP_INFO *info, uchar *record, int inx)
Definition: hp_rfirst.cc:30
int heap_update(HP_INFO *info, const uchar *old, const uchar *newdata)
Definition: hp_update.cc:32
int heap_reset(HP_INFO *info)
Definition: hp_extra.cc:61
int heap_write(HP_INFO *info, const uchar *buff)
Definition: hp_write.cc:47
int heap_info(HP_INFO *info, HEAPINFO *x, int flag)
Definition: hp_info.cc:39
int heap_indexes_are_disabled(HP_INFO *info)
Definition: hp_clear.cc:177
int heap_rlast(HP_INFO *info, uchar *record, int inx)
Definition: hp_rlast.cc:30
int heap_delete(HP_INFO *info, const uchar *buff)
Definition: hp_delete.cc:33
uchar * heap_find(HP_INFO *info, int inx, const uchar *key)
Definition: hp_rkey.cc:89
int heap_create(const char *name, HP_CREATE_INFO *create_info, HP_SHARE **share, bool *created_new_share)
Definition: hp_create.cc:43
int heap_close(HP_INFO *info)
Definition: hp_close.cc:33
void heap_position(HP_INFO *info, HP_HEAP_POSITION *pos)
Definition: hp_info.cc:30
int heap_rkey(HP_INFO *info, uchar *record, int inx, const uchar *key, key_part_map keypart_map, enum ha_rkey_function find_flag)
Definition: hp_rkey.cc:30
int heap_scan_init(HP_INFO *info)
Definition: hp_scan.cc:39
void heap_release_share(HP_SHARE *share, bool single_instance)
Dereference a HEAP share and free it if it's not referenced.
Definition: hp_open.cc:97
int heap_extra(HP_INFO *info, enum ha_extra_function function)
Definition: hp_extra.cc:38
int heap_rsame(HP_INFO *info, uchar *record, int inx)
Definition: hp_rsame.cc:38
int hp_panic(enum ha_panic_function flag)
Definition: hp_panic.cc:30
int heap_delete_table(const char *name)
Definition: hp_create.cc:288
static int flag
Definition: hp_test1.cc:40
This file includes constants used by all storage engines.
ha_panic_function
Definition: my_base.h:432
ha_rkey_function
Definition: my_base.h:78
ulong key_part_map
Definition: my_base.h:1008
my_off_t ha_rows
Definition: my_base.h:1141
ha_extra_function
Definition: my_base.h:185
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
uint8_t uint8
Definition: my_inttypes.h:63
unsigned char uchar
Definition: my_inttypes.h:52
#define MAX_TREE_HEIGHT
Definition: my_tree.h:40
static int record
Definition: mysqltest.cc:193
Definition: buf0block_hint.cc:30
mode
Definition: file_handle.h:61
required string key
Definition: replication_asynchronous_connection_failover.proto:60
case opt name
Definition: sslopt-case.h:29
Definition: my_compare.h:60
ulonglong data_length
Definition: heap.h:61
uint reclength
Definition: heap.h:63
int errkey
Definition: heap.h:64
ulong deleted
Definition: heap.h:59
ulong records
Definition: heap.h:58
time_t create_time
Definition: heap.h:66
ulong max_records
Definition: heap.h:60
ulonglong index_length
Definition: heap.h:62
ulonglong auto_increment
Definition: heap.h:65
uint levels
Definition: heap.h:112
uint records_in_block
Definition: heap.h:113
uint recbuffer
Definition: heap.h:114
HP_PTRS * root
Definition: heap.h:110
ulong last_allocated
Definition: heap.h:115
struct st_level_info level_info[HP_MAX_LEVELS+1]
Definition: heap.h:111
ulonglong auto_increment
Definition: heap.h:204
ulong max_records
Definition: heap.h:197
uint keys
Definition: heap.h:201
uint auto_key_type
Definition: heap.h:200
bool with_auto_increment
Definition: heap.h:205
ulong min_records
Definition: heap.h:198
HP_KEYDEF * keydef
Definition: heap.h:196
uint reclength
Definition: heap.h:202
uint auto_key
Definition: heap.h:199
bool single_instance
Definition: heap.h:206
bool pin_share
Definition: heap.h:212
bool delete_on_close
Definition: heap.h:207
ulonglong max_table_size
Definition: heap.h:203
HEAP_PTR ptr
Definition: heap.h:190
ulong record_no
Definition: heap.h:191
bool implicit_emptied
Definition: heap.h:182
HASH_INFO * current_hash_ptr
Definition: heap.h:171
int errkey
Definition: heap.h:173
int lastinx
Definition: heap.h:173
uchar * current_ptr
Definition: heap.h:170
TREE_ELEMENT ** last_pos
Definition: heap.h:180
ulong next_block
Definition: heap.h:172
uchar * lastkey
Definition: heap.h:176
THR_LOCK_DATA lock
Definition: heap.h:183
ulong current_record
Definition: heap.h:172
int mode
Definition: heap.h:174
enum ha_rkey_function last_find_flag
Definition: heap.h:178
HP_SHARE * s
Definition: heap.h:169
uchar * recbuf
Definition: heap.h:177
uint lastkey_len
Definition: heap.h:181
TREE_ELEMENT * parents[MAX_TREE_HEIGHT+1]
Definition: heap.h:179
uint opt_flag
Definition: heap.h:175
uint update
Definition: heap.h:175
LIST open_list
Definition: heap.h:184
ha_rows hash_buckets
Definition: heap.h:132
uint keysegs
Definition: heap.h:123
uint8 algorithm
Definition: heap.h:125
uint flag
Definition: heap.h:122
int(* write_key)(HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *record, uchar *recpos)
Definition: heap.h:134
uint length
Definition: heap.h:124
TREE rb_tree
Definition: heap.h:133
int(* delete_key)(HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *record, uchar *recpos, int flag)
Definition: heap.h:136
HA_KEYSEG * seg
Definition: heap.h:126
uint(* get_key_length)(HP_KEYDEF *keydef, const uchar *key)
Definition: heap.h:138
HP_BLOCK block
Definition: heap.h:127
uchar * blocks[HP_PTRS_IN_NOD]
Definition: heap.h:72
uint deleted
Definition: heap.h:149
time_t create_time
Definition: heap.h:157
HP_KEYDEF * keydef
Definition: heap.h:143
ulonglong auto_increment
Definition: heap.h:163
uint currently_disabled_keys
Definition: heap.h:153
uint blength
Definition: heap.h:148
uint max_key_length
Definition: heap.h:152
uint changed
Definition: heap.h:151
uchar * del_link
Definition: heap.h:155
ulong min_records
Definition: heap.h:144
uint keys
Definition: heap.h:152
bool delete_on_close
Definition: heap.h:159
LIST open_list
Definition: heap.h:160
ulonglong index_length
Definition: heap.h:145
ulonglong max_table_size
Definition: heap.h:145
uint auto_key_type
Definition: heap.h:162
uint records
Definition: heap.h:147
ulong max_records
Definition: heap.h:144
uint open_count
Definition: heap.h:154
THR_LOCK lock
Definition: heap.h:158
uint key_stat_version
Definition: heap.h:146
HP_BLOCK block
Definition: heap.h:142
ulonglong data_length
Definition: heap.h:145
char * name
Definition: heap.h:156
uint auto_key
Definition: heap.h:161
uint reclength
Definition: heap.h:150
Definition: thr_lock.h:124
Definition: thr_lock.h:139
Definition: my_base.h:1125
HP_PTRS * last_blocks
Definition: heap.h:90
ulong records_under_level
Definition: heap.h:84
uint free_ptrs_in_block
Definition: heap.h:77
Include file for Sun RPC to compile out of the box.