diff options
author | unknown <brian@zim.(none)> | 2007-03-23 18:51:56 -0700 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2007-03-23 18:51:56 -0700 |
commit | 89f5507389b53a662e3157b40d25683804b3a4d9 (patch) | |
tree | 0ae01e9638f12411d31c0960dcc77548d6098620 /storage/archive/ha_archive.h | |
parent | 1dde952e764cfb709041807256b6a16484118886 (diff) | |
download | mariadb-git-89f5507389b53a662e3157b40d25683804b3a4d9.tar.gz |
Added delayed open of file descriptors to cut down on issues surrounding large collections of partitions being open by many threads.
storage/archive/azlib.h:
Adjusted the buffer down to something reasonable :)
storage/archive/ha_archive.cc:
Upgraded file descriptors to not be opened until needed.
storage/archive/ha_archive.h:
New methods for delayed open
Diffstat (limited to 'storage/archive/ha_archive.h')
-rw-r--r-- | storage/archive/ha_archive.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/archive/ha_archive.h b/storage/archive/ha_archive.h index 8f56e8ce060..8fc54f6715f 100644 --- a/storage/archive/ha_archive.h +++ b/storage/archive/ha_archive.h @@ -71,6 +71,7 @@ class ha_archive: public handler uint current_key_len; uint current_k_offset; archive_record_buffer *record_buffer; + bool archive_reader_open; archive_record_buffer *create_record_buffer(unsigned int length); void destroy_record_buffer(archive_record_buffer *r); @@ -119,6 +120,7 @@ public: ARCHIVE_SHARE *get_share(const char *table_name, int *rc); int free_share(); int init_archive_writer(); + int init_archive_reader(); bool auto_repair() const { return 1; } // For the moment we just do this int read_data_header(azio_stream *file_to_read); void position(const byte *record); |