diff options
author | unknown <brian@zim.(none)> | 2005-12-23 12:22:31 -0800 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2005-12-23 12:22:31 -0800 |
commit | 8ff680920a269c44b620306c801a7dd30a0eedbf (patch) | |
tree | 35030777a6375ac5331d70c5975b0c7c7b98b297 /sql/ha_archive.cc | |
parent | 2c88b6395b6343a3849ef0d3cb932ce7f9c282d3 (diff) | |
download | mariadb-git-8ff680920a269c44b620306c801a7dd30a0eedbf.tar.gz |
Fix for Antony's push. I've also changed from using the zlib off_t pointer type to my_off_t to fix issues around buggy zlib versions and to make sure file sizes are consistent through out mysql.
mysql-test/r/information_schema.result:
Fix for Antony adding plugins to information schema.
sql/ha_archive.cc:
Fix for now using my_off_t, no need to worry about buggy zlib's anymore.
sql/ha_archive.h:
Update to fix issues with buggy zlib.
storage/archive/azio.c:
Moved to using my_off_t (which should fix problems with most fille system size issues).
storage/archive/azlib.h:
Change to using my_off_t
Diffstat (limited to 'sql/ha_archive.cc')
-rw-r--r-- | sql/ha_archive.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sql/ha_archive.cc b/sql/ha_archive.cc index 5fd995fefd2..6cfb29537a2 100644 --- a/sql/ha_archive.cc +++ b/sql/ha_archive.cc @@ -247,8 +247,7 @@ ha_archive::ha_archive(TABLE_SHARE *table_arg) buffer.set((char *)byte_buffer, IO_SIZE, system_charset_info); /* The size of the offset value we will use for position() */ - ref_length = 2 << ((zlibCompileFlags() >> 6) & 3); - DBUG_ASSERT(ref_length <= sizeof(z_off_t)); + ref_length = sizeof(my_off_t); } /* @@ -612,7 +611,7 @@ error: */ int ha_archive::real_write_row(byte *buf, azio_stream *writer) { - z_off_t written; + my_off_t written; uint *ptr, *end; DBUG_ENTER("ha_archive::real_write_row"); @@ -621,7 +620,7 @@ int ha_archive::real_write_row(byte *buf, azio_stream *writer) if (!delayed_insert || !bulk_insert) share->dirty= TRUE; - if (written != (z_off_t)table->s->reclength) + if (written != (my_off_t)table->s->reclength) DBUG_RETURN(errno ? errno : -1); /* We should probably mark the table as damagaged if the record is written @@ -638,7 +637,7 @@ int ha_archive::real_write_row(byte *buf, azio_stream *writer) { ((Field_blob*) table->field[*ptr])->get_ptr(&data_ptr); written= azwrite(writer, data_ptr, (unsigned)size); - if (written != (z_off_t)size) + if (written != (my_off_t)size) DBUG_RETURN(errno ? errno : -1); } } @@ -830,7 +829,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos) DBUG_ENTER("ha_archive::rnd_pos"); statistic_increment(table->in_use->status_var.ha_read_rnd_next_count, &LOCK_status); - current_position= (z_off_t)my_get_ptr(pos, ref_length); + current_position= (my_off_t)my_get_ptr(pos, ref_length); (void)azseek(&archive, current_position, SEEK_SET); DBUG_RETURN(get_row(&archive, buf)); |