mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-main
into a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-marvel BitKeeper/etc/ignore: auto-union client/mysqlcheck.c: Auto merged client/mysqldump.c: Auto merged client/mysqltest.c: Auto merged include/Makefile.am: Auto merged include/m_string.h: Auto merged include/my_base.h: Auto merged include/my_dbug.h: Auto merged include/my_global.h: Auto merged include/my_sys.h: Auto merged libmysql/CMakeLists.txt: Auto merged libmysql/Makefile.shared: Auto merged mysql-test/lib/mtr_report.pl: Auto merged mysys/mf_keycache.c: Auto merged sql/gen_lex_hash.cc: Auto merged sql/ha_partition.cc: Auto merged sql/handler.cc: Auto merged sql/handler.h: Auto merged sql/item_func.cc: Auto merged sql/lex.h: Auto merged sql/log.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/opt_range.cc: Auto merged sql/set_var.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_plugin.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_show.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/table.cc: Auto merged sql/table.h: Auto merged sql/unireg.cc: Auto merged storage/myisam/ft_boolean_search.c: Auto merged storage/myisam/ft_nlq_search.c: Auto merged storage/myisam/ha_myisam.cc: Auto merged storage/myisam/mi_check.c: Auto merged storage/myisam/mi_open.c: Auto merged storage/myisam/myisampack.c: Auto merged storage/myisammrg/ha_myisammrg.cc: Auto merged client/mysqlslap.c: Manual merge with main 5.1 tree.
This commit is contained in:
@ -1008,7 +1008,7 @@ static int get_statistic(PACK_MRG_INFO *mrg,HUFF_COUNTS *huff_counts)
|
||||
/* Calculate pos, end_pos, and max_length for variable length fields. */
|
||||
if (count->field_type == FIELD_BLOB)
|
||||
{
|
||||
uint field_length=count->field_length -mi_portable_sizeof_char_ptr;
|
||||
uint field_length=count->field_length -portable_sizeof_char_ptr;
|
||||
ulong blob_length= _mi_calc_blob_length(field_length, start_pos);
|
||||
memcpy_fixed((char*) &pos, start_pos+field_length,sizeof(char*));
|
||||
end_pos=pos+blob_length;
|
||||
@ -2650,7 +2650,7 @@ static int compress_isam_file(PACK_MRG_INFO *mrg, HUFF_COUNTS *huff_counts)
|
||||
case FIELD_BLOB:
|
||||
{
|
||||
ulong blob_length=_mi_calc_blob_length(field_length-
|
||||
mi_portable_sizeof_char_ptr,
|
||||
portable_sizeof_char_ptr,
|
||||
start_pos);
|
||||
/* Empty blobs are encoded with a single 1 bit. */
|
||||
if (!blob_length)
|
||||
@ -2667,7 +2667,7 @@ static int compress_isam_file(PACK_MRG_INFO *mrg, HUFF_COUNTS *huff_counts)
|
||||
DBUG_PRINT("fields", ("FIELD_BLOB %lu bytes, bits: %2u",
|
||||
blob_length, count->length_bits));
|
||||
write_bits(blob_length,count->length_bits);
|
||||
memcpy_fixed(&blob,end_pos-mi_portable_sizeof_char_ptr,
|
||||
memcpy_fixed(&blob,end_pos-portable_sizeof_char_ptr,
|
||||
sizeof(char*));
|
||||
blob_end=blob+blob_length;
|
||||
/* Encode the blob bytes. */
|
||||
|
Reference in New Issue
Block a user