diff options
author | brian@zim.(none) <> | 2005-07-09 08:57:08 -0700 |
---|---|---|
committer | brian@zim.(none) <> | 2005-07-09 08:57:08 -0700 |
commit | 9bd74f7e81d14364feb9eda65a60391b6f3bdb5c (patch) | |
tree | 22e6f93e3bf21a6021a4f3dbc267595920619094 /sql/examples | |
parent | 8826b086d5082e2c18893936017878a177d58574 (diff) | |
download | mariadb-git-9bd74f7e81d14364feb9eda65a60391b6f3bdb5c.tar.gz |
Fixed indention issue, made scan_rows an ha_rows type, and fixed show table status so archive rows are displayed as being compressed.
Diffstat (limited to 'sql/examples')
-rw-r--r-- | sql/examples/ha_archive.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/examples/ha_archive.h b/sql/examples/ha_archive.h index 454d253abe5..4afdba4b8ed 100644 --- a/sql/examples/ha_archive.h +++ b/sql/examples/ha_archive.h @@ -36,7 +36,7 @@ typedef struct st_archive_share { gzFile archive_write; /* Archive file we are working with */ bool dirty; /* Flag for if a flush should occur */ bool crashed; /* Meta file is crashed */ - ha_rows rows_recorded; /* Number of rows in tables */ + ha_rows rows_recorded; /* Number of rows in tables */ } ARCHIVE_SHARE; /* @@ -53,7 +53,7 @@ class ha_archive: public handler z_off_t current_position; /* The position of the row we just read */ byte byte_buffer[IO_SIZE]; /* Initial buffer for our string */ String buffer; /* Buffer used for blob storage */ - ulonglong scan_rows; /* Number of rows left in scan */ + ha_rows scan_rows; /* Number of rows left in scan */ bool delayed_insert; /* If the insert is delayed */ bool bulk_insert; /* If we are performing a bulk insert */ @@ -102,6 +102,10 @@ public: int repair(THD* thd, HA_CHECK_OPT* check_opt); void start_bulk_insert(ha_rows rows); int end_bulk_insert(); + enum row_type get_row_type() const + { + return ROW_TYPE_COMPRESSED; + } THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type); }; |