diff options
author | serg@serg.mylan <> | 2005-11-16 15:17:08 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2005-11-16 15:17:08 +0100 |
commit | 60875d32363877434923a6453c12cab3918c99ca (patch) | |
tree | ad48264532ca5475f05db03beece0f72611e15dd /sql/ha_archive.cc | |
parent | a60a6b0f7f05bd1289eb4fa780dcd7466b0ebd8b (diff) | |
download | mariadb-git-60875d32363877434923a6453c12cab3918c99ca.tar.gz |
bug#14433 - archive uses wrong ref_length
Diffstat (limited to 'sql/ha_archive.cc')
-rw-r--r-- | sql/ha_archive.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/ha_archive.cc b/sql/ha_archive.cc index c4801de5fb2..1e8fc582eb8 100644 --- a/sql/ha_archive.cc +++ b/sql/ha_archive.cc @@ -233,7 +233,8 @@ ha_archive::ha_archive(TABLE *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 = sizeof(z_off_t); + ref_length = 2 << ((zlibCompileFlags() >> 6) & 3); + DBUG_ASSERT(ref_length <= sizeof(z_off_t)); } /* |