50#define HP_MAX_LEVELS 4
51#define HP_PTRS_IN_NOD 128
134 uchar *recpos){
nullptr};
229 HP_SHARE **share,
bool *created_new_share);
234extern int heap_rename(
const char *old_name,
const char *new_name);
char * pos
Definition: do_ctype.cc:76
int heap_scan(HP_INFO *info, uchar *record)
Definition: hp_scan.cc:47
#define HP_PTRS_IN_NOD
Definition: heap.h:51
int heap_panic(enum ha_panic_function flag)
void heap_update_auto_increment(HP_INFO *info, const uchar *record)
Definition: hp_hash.cc:749
HP_INFO * heap_open_from_share_and_register(HP_SHARE *share, int mode)
Definition: hp_open.cc:77
void heap_clear_keys(HP_INFO *info)
Definition: hp_clear.cc:66
int heap_rrnd(HP_INFO *info, uchar *buf, HP_HEAP_POSITION *pos)
Definition: hp_rrnd.cc:36
void heap_drop_table(HP_INFO *info)
Definition: hp_create.cc:304
int heap_rename(const char *old_name, const char *new_name)
Definition: hp_rename.cc:32
int heap_disable_indexes(HP_INFO *info)
Definition: hp_clear.cc:117
int heap_check_heap(HP_INFO *info, bool print_status)
Definition: _check.cc:52
uchar * HEAP_PTR
Definition: heap.h:186
int heap_rnext(HP_INFO *info, uchar *record)
Definition: hp_rnext.cc:29
ha_rows hp_rb_records_in_range(HP_INFO *info, int inx, key_range *min_key, key_range *max_key)
Definition: hp_hash.cc:65
int heap_enable_indexes(HP_INFO *info)
Definition: hp_clear.cc:147
int heap_rprev(HP_INFO *info, uchar *record)
Definition: hp_rprev.cc:29
HP_INFO * heap_open_from_share(HP_SHARE *share, int mode)
Definition: hp_open.cc:41
#define HP_MAX_LEVELS
Definition: heap.h:50
void heap_clear(HP_INFO *info)
Definition: hp_clear.cc:35
HP_INFO * heap_open(const char *name, int mode)
Definition: hp_open.cc:115
int heap_rfirst(HP_INFO *info, uchar *record, int inx)
Definition: hp_rfirst.cc:29
int heap_update(HP_INFO *info, const uchar *old, const uchar *newdata)
Definition: hp_update.cc:31
int heap_reset(HP_INFO *info)
Definition: hp_extra.cc:60
int heap_write(HP_INFO *info, const uchar *buff)
Definition: hp_write.cc:46
int heap_info(HP_INFO *info, HEAPINFO *x, int flag)
Definition: hp_info.cc:38
int heap_indexes_are_disabled(HP_INFO *info)
Definition: hp_clear.cc:176
int heap_rlast(HP_INFO *info, uchar *record, int inx)
Definition: hp_rlast.cc:29
int heap_delete(HP_INFO *info, const uchar *buff)
Definition: hp_delete.cc:32
uchar * heap_find(HP_INFO *info, int inx, const uchar *key)
Definition: hp_rkey.cc:88
int heap_create(const char *name, HP_CREATE_INFO *create_info, HP_SHARE **share, bool *created_new_share)
Definition: hp_create.cc:42
int heap_close(HP_INFO *info)
Definition: hp_close.cc:32
void heap_position(HP_INFO *info, HP_HEAP_POSITION *pos)
Definition: hp_info.cc:29
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:29
int heap_scan_init(HP_INFO *info)
Definition: hp_scan.cc:38
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:96
int heap_extra(HP_INFO *info, enum ha_extra_function function)
Definition: hp_extra.cc:37
int heap_rsame(HP_INFO *info, uchar *record, int inx)
Definition: hp_rsame.cc:37
int hp_panic(enum ha_panic_function flag)
Definition: hp_panic.cc:29
int heap_delete_table(const char *name)
Definition: hp_create.cc:287
static int flag
Definition: hp_test1.cc:39
static MI_KEYDEF keyinfo[10]
Definition: mi_test1.cc:46
This file includes constants used by all storage engines.
ha_panic_function
Definition: my_base.h:430
ha_rkey_function
Definition: my_base.h:77
ulong key_part_map
Definition: my_base.h:1006
my_off_t ha_rows
Definition: my_base.h:1139
ha_extra_function
Definition: my_base.h:183
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
uint8_t uint8
Definition: my_inttypes.h:62
unsigned char uchar
Definition: my_inttypes.h:51
#define MAX_TREE_HEIGHT
Definition: my_tree.h:39
Definition: buf0block_hint.cc:29
mode
Definition: file_handle.h:59
required string key
Definition: replication_asynchronous_connection_failover.proto:59
case opt name
Definition: sslopt-case.h:32
Definition: my_compare.h:59
ulonglong data_length
Definition: heap.h:60
uint reclength
Definition: heap.h:62
int errkey
Definition: heap.h:63
ulong deleted
Definition: heap.h:58
ulong records
Definition: heap.h:57
time_t create_time
Definition: heap.h:65
ulong max_records
Definition: heap.h:59
ulonglong index_length
Definition: heap.h:61
ulonglong auto_increment
Definition: heap.h:64
uint levels
Definition: heap.h:111
uint records_in_block
Definition: heap.h:112
uint recbuffer
Definition: heap.h:113
HP_PTRS * root
Definition: heap.h:109
ulong last_allocated
Definition: heap.h:114
struct st_level_info level_info[HP_MAX_LEVELS+1]
Definition: heap.h:110
ulonglong auto_increment
Definition: heap.h:203
ulong max_records
Definition: heap.h:196
uint keys
Definition: heap.h:200
uint auto_key_type
Definition: heap.h:199
bool with_auto_increment
Definition: heap.h:204
ulong min_records
Definition: heap.h:197
HP_KEYDEF * keydef
Definition: heap.h:195
uint reclength
Definition: heap.h:201
uint auto_key
Definition: heap.h:198
bool single_instance
Definition: heap.h:205
bool pin_share
Definition: heap.h:211
bool delete_on_close
Definition: heap.h:206
ulonglong max_table_size
Definition: heap.h:202
HEAP_PTR ptr
Definition: heap.h:189
ulong record_no
Definition: heap.h:190
bool implicit_emptied
Definition: heap.h:181
HASH_INFO * current_hash_ptr
Definition: heap.h:170
int errkey
Definition: heap.h:172
int lastinx
Definition: heap.h:172
uchar * current_ptr
Definition: heap.h:169
TREE_ELEMENT ** last_pos
Definition: heap.h:179
ulong next_block
Definition: heap.h:171
uchar * lastkey
Definition: heap.h:175
THR_LOCK_DATA lock
Definition: heap.h:182
ulong current_record
Definition: heap.h:171
int mode
Definition: heap.h:173
enum ha_rkey_function last_find_flag
Definition: heap.h:177
HP_SHARE * s
Definition: heap.h:168
uchar * recbuf
Definition: heap.h:176
uint lastkey_len
Definition: heap.h:180
TREE_ELEMENT * parents[MAX_TREE_HEIGHT+1]
Definition: heap.h:178
uint opt_flag
Definition: heap.h:174
uint update
Definition: heap.h:174
LIST open_list
Definition: heap.h:183
ha_rows hash_buckets
Definition: heap.h:131
uint keysegs
Definition: heap.h:122
uint8 algorithm
Definition: heap.h:124
uint flag
Definition: heap.h:121
int(* write_key)(HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *record, uchar *recpos)
Definition: heap.h:133
uint length
Definition: heap.h:123
TREE rb_tree
Definition: heap.h:132
int(* delete_key)(HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *record, uchar *recpos, int flag)
Definition: heap.h:135
HA_KEYSEG * seg
Definition: heap.h:125
uint(* get_key_length)(HP_KEYDEF *keydef, const uchar *key)
Definition: heap.h:137
HP_BLOCK block
Definition: heap.h:126
uchar * blocks[HP_PTRS_IN_NOD]
Definition: heap.h:71
uint deleted
Definition: heap.h:148
time_t create_time
Definition: heap.h:156
HP_KEYDEF * keydef
Definition: heap.h:142
ulonglong auto_increment
Definition: heap.h:162
uint currently_disabled_keys
Definition: heap.h:152
uint blength
Definition: heap.h:147
uint max_key_length
Definition: heap.h:151
uint changed
Definition: heap.h:150
uchar * del_link
Definition: heap.h:154
ulong min_records
Definition: heap.h:143
uint keys
Definition: heap.h:151
bool delete_on_close
Definition: heap.h:158
LIST open_list
Definition: heap.h:159
ulonglong index_length
Definition: heap.h:144
ulonglong max_table_size
Definition: heap.h:144
uint auto_key_type
Definition: heap.h:161
uint records
Definition: heap.h:146
ulong max_records
Definition: heap.h:143
uint open_count
Definition: heap.h:153
THR_LOCK lock
Definition: heap.h:157
uint key_stat_version
Definition: heap.h:145
HP_BLOCK block
Definition: heap.h:141
ulonglong data_length
Definition: heap.h:144
char * name
Definition: heap.h:155
uint auto_key
Definition: heap.h:160
uint reclength
Definition: heap.h:149
Definition: thr_lock.h:123
Definition: thr_lock.h:138
Definition: my_base.h:1123
Definition: mi_test3.cc:54
HP_PTRS * last_blocks
Definition: heap.h:89
ulong records_under_level
Definition: heap.h:83
uint free_ptrs_in_block
Definition: heap.h:76
Include file for Sun RPC to compile out of the box.
unsigned int uint
Definition: uca-dump.cc:29