summaryrefslogtreecommitdiff
path: root/myisam/myisamdef.h
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-09-05 18:28:56 +0500
committerunknown <ramil@mysql.com>2005-09-05 18:28:56 +0500
commitb48e721d2f2e4f2ae591de5c581e002db8d7cc88 (patch)
tree4523c480ff3020b7a082c4066c29b6f996ffa587 /myisam/myisamdef.h
parent7a0f593dac959f2f243f4157a7c763c152e10dc6 (diff)
parent43b0448081cc5a2e79e598c32f96a95a85fd4aed (diff)
downloadmariadb-git-b48e721d2f2e4f2ae591de5c581e002db8d7cc88.tar.gz
Merge mysql.com:/usr/home/ram/work/4.1.b4214
into mysql.com:/usr/home/ram/work/mysql-5.0 myisam/mi_check.c: Auto merged myisam/mi_packrec.c: Auto merged myisam/mi_static.c: Auto merged myisam/myisamdef.h: Auto merged ndb/src/kernel/main.cpp: Auto merged ndb/src/kernel/vm/Emulator.cpp: Auto merged myisam/myisampack.c: merging
Diffstat (limited to 'myisam/myisamdef.h')
-rw-r--r--myisam/myisamdef.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/myisam/myisamdef.h b/myisam/myisamdef.h
index 74463ec065a..82f7fd7360e 100644
--- a/myisam/myisamdef.h
+++ b/myisam/myisamdef.h
@@ -149,6 +149,7 @@ typedef struct st_mi_blob /* Info of record */
typedef struct st_mi_isam_pack {
ulong header_length;
uint ref_length;
+ uchar version;
} MI_PACK;
@@ -673,7 +674,9 @@ extern void _myisam_log_record(enum myisam_log_commands command,MI_INFO *info,
extern void mi_report_error(int errcode, const char *file_name);
extern my_bool _mi_memmap_file(MI_INFO *info);
extern void _mi_unmap_file(MI_INFO *info);
-extern uint save_pack_length(byte *block_buff,ulong length);
+extern uint save_pack_length(uint version, byte *block_buff, ulong length);
+extern uint read_pack_length(uint version, const uchar *buf, ulong *length);
+extern uint calc_pack_length(uint version, ulong length);
uint mi_state_info_write(File file, MI_STATE_INFO *state, uint pWrite);
char *mi_state_info_read(uchar *ptr, MI_STATE_INFO *state);