diff options
author | unknown <brian@brian-akers-computer.local> | 2004-09-21 03:33:22 +0200 |
---|---|---|
committer | unknown <brian@brian-akers-computer.local> | 2004-09-21 03:33:22 +0200 |
commit | 764ea714f4c22c50bcfefc89cb1bbba951437f58 (patch) | |
tree | ebc56ee71ecca22bf7468f81657d523ca7a66169 /sql/examples/ha_archive.h | |
parent | 52683755d3572722bdd32ffe7ae2e6d237d6066d (diff) | |
download | mariadb-git-764ea714f4c22c50bcfefc89cb1bbba951437f58.tar.gz |
The major change for this changeset is the addition of code to handle:
OPTIMIZE TABLE <archive table>
This recompresses the table, thus removing any additional gzip headers caused by opening/closing or flushing the table.
mysql-test/r/archive.result:
Added optimize test case for archive engine.
mysql-test/t/archive.test:
Added test case for OPTIMIZE table <archive table>
sql/examples/ha_archive.cc:
The big change was the addition of optimize() call to allow tables to be recompressed (so if you have been reading/writing/reading/writing and ending up with larger files then you should, this will solve it). Though adding this feature is going to make it a real headache to add row level locking.
Also fixed bug reported by JD where storage engine code was not functioning (this of course was because I didn't check for the propper return value for hash_init). Removed BROKEN_GZIP ifdef since there was no way to enable it.
sql/examples/ha_archive.h:
Added optimize() method.
Diffstat (limited to 'sql/examples/ha_archive.h')
-rw-r--r-- | sql/examples/ha_archive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/examples/ha_archive.h b/sql/examples/ha_archive.h index f08353a5d6c..cf7becc5bc0 100644 --- a/sql/examples/ha_archive.h +++ b/sql/examples/ha_archive.h @@ -112,7 +112,7 @@ public: int external_lock(THD *thd, int lock_type); ha_rows records_in_range(uint inx, key_range *min_key, key_range *max_key); int create(const char *name, TABLE *form, HA_CREATE_INFO *create_info); - + int optimize(THD* thd, HA_CHECK_OPT* check_opt); THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type); }; |