summaryrefslogtreecommitdiff
path: root/storage/archive/ha_archive.h
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2007-07-12 17:39:07 -0700
committerunknown <brian@zim.(none)>2007-07-12 17:39:07 -0700
commit54bfd8b113f571cee1824457e8fceaf37e8781c9 (patch)
tree82f56c9faf2f5d260b897c57961f8141337c8b48 /storage/archive/ha_archive.h
parentb05c86bcfe414b74901cc9e3b99dc0595f63e555 (diff)
downloadmariadb-git-54bfd8b113f571cee1824457e8fceaf37e8781c9.tar.gz
Fixed locking issues around flushes.
storage/archive/ha_archive.cc: Added mutex around flush calls to make read's consistent (and not conflicting) storage/archive/ha_archive.h: Fixed issues for fast count(*) call
Diffstat (limited to 'storage/archive/ha_archive.h')
-rw-r--r--storage/archive/ha_archive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/archive/ha_archive.h b/storage/archive/ha_archive.h
index 22fb57b0cc7..ab630ed22fd 100644
--- a/storage/archive/ha_archive.h
+++ b/storage/archive/ha_archive.h
@@ -88,6 +88,8 @@ public:
{
return (HA_NO_TRANSACTIONS | HA_REC_NOT_IN_SEQ | HA_CAN_BIT_FIELD |
HA_BINLOG_ROW_CAPABLE | HA_BINLOG_STMT_CAPABLE |
+ HA_STATS_RECORDS_IS_EXACT |
+ HA_HAS_RECORDS |
HA_FILE_BASED | HA_CAN_INSERT_DELAYED | HA_CAN_GEOMETRY);
}
ulong index_flags(uint idx, uint part, bool all_parts) const
@@ -101,6 +103,7 @@ public:
uint max_supported_keys() const { return 1; }
uint max_supported_key_length() const { return sizeof(ulonglong); }
uint max_supported_key_part_length() const { return sizeof(ulonglong); }
+ ha_rows records() { return share->rows_recorded; }
int index_init(uint keynr, bool sorted);
virtual int index_read(uchar * buf, const uchar * key,
uint key_len, enum ha_rkey_function find_flag);