diff options
author | tulin@dl145b.mysql.com <> | 2005-07-19 21:56:10 +0200 |
---|---|---|
committer | tulin@dl145b.mysql.com <> | 2005-07-19 21:56:10 +0200 |
commit | a6c21a079163d2d09163cb4084ada38f4ddac929 (patch) | |
tree | 91e9f17b6b183df5ad37be93a13365d7d0f0d7f8 /sql/examples/ha_archive.cc | |
parent | 519c5564b15cf4b88719eb0e4cb4dc5247891425 (diff) | |
parent | e3af1b6ec6ecd95b6f42192c75af08fcc7c3618a (diff) | |
download | mariadb-git-a6c21a079163d2d09163cb4084ada38f4ddac929.tar.gz |
merge
Diffstat (limited to 'sql/examples/ha_archive.cc')
-rw-r--r-- | sql/examples/ha_archive.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc index c362985f565..e5c35ae019d 100644 --- a/sql/examples/ha_archive.cc +++ b/sql/examples/ha_archive.cc @@ -149,7 +149,8 @@ static handlerton archive_hton = { 0, /* prepare */ 0, /* recover */ 0, /* commit_by_xid */ - 0 /* rollback_by_xid */ + 0, /* rollback_by_xid */ + HTON_NO_FLAGS }; @@ -208,6 +209,15 @@ bool archive_db_end() return FALSE; } +ha_archive::ha_archive(TABLE *table_arg) + :handler(&archive_hton, table_arg), delayed_insert(0), bulk_insert(0) +{ + /* Set our original buffer from pre-allocated memory */ + 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); +} /* This method reads the header of a datafile and returns whether or not it was successful. |