summaryrefslogtreecommitdiff
path: root/sql/ha_archive.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-11-16 15:17:08 +0100
committerserg@serg.mylan <>2005-11-16 15:17:08 +0100
commit60875d32363877434923a6453c12cab3918c99ca (patch)
treead48264532ca5475f05db03beece0f72611e15dd /sql/ha_archive.cc
parenta60a6b0f7f05bd1289eb4fa780dcd7466b0ebd8b (diff)
downloadmariadb-git-60875d32363877434923a6453c12cab3918c99ca.tar.gz
bug#14433 - archive uses wrong ref_length
Diffstat (limited to 'sql/ha_archive.cc')
-rw-r--r--sql/ha_archive.cc3
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));
}
/*