summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2005-08-29 14:04:15 +0200
committermsvensson@neptunus.(none) <>2005-08-29 14:04:15 +0200
commit5de225926388c11f21ebcb92db9b7433b9931175 (patch)
treef815ee89ddf7ef870bca0629f8914044103c2d09 /sql/examples
parentd553e1651830a9db78261888218c4dc2007afff1 (diff)
downloadmariadb-git-5de225926388c11f21ebcb92db9b7433b9931175.tar.gz
Bug #12527 yassl causes errors in "repair" and "optimize"
- Use constant directly to check that enough number of bytes have been written as header of the archive.
Diffstat (limited to 'sql/examples')
-rw-r--r--sql/examples/ha_archive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc
index 10712c2e3be..d4e3b961223 100644
--- a/sql/examples/ha_archive.cc
+++ b/sql/examples/ha_archive.cc
@@ -225,7 +225,7 @@ int ha_archive::write_data_header(gzFile file_to_write)
data_buffer[1]= (uchar)ARCHIVE_VERSION;
if (gzwrite(file_to_write, &data_buffer, DATA_BUFFER_SIZE) !=
- sizeof(DATA_BUFFER_SIZE))
+ DATA_BUFFER_SIZE)
goto error;
DBUG_PRINT("ha_archive::write_data_header", ("Check %u", (uint)data_buffer[0]));
DBUG_PRINT("ha_archive::write_data_header", ("Version %u", (uint)data_buffer[1]));