mariadb/storage/archive
Davi Arnaut e4cbcaf942 Bug#45377: ARCHIVE tables aren't discoverable after OPTIMIZE
The problem was that the optimize method of the ARCHIVE storage
engine was not preserving the FRM embedded in the ARZ file when
rewriting the ARZ file for optimization. The ARCHIVE engine stores
the FRM in the ARZ file so it can be transferred from machine to
machine without also copying the FRM -- the engine restores the
embedded FRM during discovery.

The solution is to copy over the FRM when rewriting the ARZ file.
In addition, some initial error checking is performed to ensure
garbage is not copied over.


mysql-test/t/archive.test:
  Add test case for Bug#45377.
storage/archive/azio.c:
  Add error checking to ensure that the I/O operations are
  successful.
storage/archive/ha_archive.cc:
  Copy over the embedded FRM.
2010-07-26 12:54:20 -03:00
..
archive_reader.c Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled 2010-07-08 18:20:08 -03:00
archive_test.c Modified read buffer to see if performance difference existed. 2007-03-20 22:13:55 -07:00
azio.c Bug#45377: ARCHIVE tables aren't discoverable after OPTIMIZE 2010-07-26 12:54:20 -03:00
azlib.h BUG#46587 - archive storage engine headers don't include 2010-04-15 13:33:33 +04:00
CMakeLists.txt - Introduce MYSQL_ADD_PLUGIN that replaces MYSQL_STORAGE_ENGINE 2009-12-01 12:00:50 +01:00
ha_archive.cc Bug#45377: ARCHIVE tables aren't discoverable after OPTIMIZE 2010-07-26 12:54:20 -03:00
ha_archive.h Bug#45377: ARCHIVE tables aren't discoverable after OPTIMIZE 2010-07-26 12:54:20 -03:00
Makefile.am Merge of mysql-5.1-bugteam into mysql-trunk-merge. 2010-07-09 09:28:51 -03:00
plug.in auto-set MYSQL_PLUGIN_DIRECTORY for plug.in files 2006-05-06 07:43:18 -04:00