diff options
author | unknown <monty@tik.mysql.com> | 2000-10-15 18:45:53 +0300 |
---|---|---|
committer | unknown <monty@tik.mysql.com> | 2000-10-15 18:45:53 +0300 |
commit | d78f9840978cf60b73f13f6a5201ed5593636573 (patch) | |
tree | 51edb97a7ba1e486acf5bdba590984b73c775b29 /isam | |
parent | 31ed959ba37ae81b9b0eb2079f1576f34f1241c7 (diff) | |
download | mariadb-git-d78f9840978cf60b73f13f6a5201ed5593636573.tar.gz |
Changed meaning of HA_EXTRA_RESET and start of hidden primary keys for BDB tables
heap/hp_extra.c:
Changed meaning of HA_EXTRA_RESET
include/my_base.h:
Added HA_EXTRA_RESET_STATE
isam/extra.c:
Changed meaning of HA_EXTRA_RESET
isam/pack_isam.c:
Addapt to changed HA_EXTRA_RESET
merge/extra.c:
Changed meaning of HA_EXTRA_RESET
myisam/mi_extra.c:
Changed meaning of HA_EXTRA_RESET
myisam/myisampack.c:
Addapt to changed HA_EXTRA_RESET
myisammrg/myrg_extra.c:
Addapt to changed HA_EXTRA_RESET
sql/filesort.cc:
Addapt to changed HA_EXTRA_RESET
sql/ha_berkeley.cc:
Hidden primary key
sql/ha_berkeley.h:
Hidden primary key
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'isam')
-rw-r--r-- | isam/extra.c | 8 | ||||
-rw-r--r-- | isam/pack_isam.c | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/isam/extra.c b/isam/extra.c index dc9b6ce2d19..1d333fa372f 100644 --- a/isam/extra.c +++ b/isam/extra.c @@ -36,6 +36,14 @@ int nisam_extra(N_INFO *info, enum ha_extra_function function) switch (function) { case HA_EXTRA_RESET: + if (info->opt_flag & (READ_CACHE_USED | WRITE_CACHE_USED)) + { + info->opt_flag&= ~(READ_CACHE_USED | WRITE_CACHE_USED); + error=end_io_cache(&info->rec_cache); + } + info->opt_flag&= ~(KEY_READ_USED | REMEMBER_OLD_POS); + + case HA_EXTRA_RESET_STATE: info->lastinx= 0; /* Use first index as def */ info->int_pos=info->lastpos= NI_POS_ERROR; info->page_changed=1; diff --git a/isam/pack_isam.c b/isam/pack_isam.c index 1040096fa4a..cadec5bcef5 100644 --- a/isam/pack_isam.c +++ b/isam/pack_isam.c @@ -2012,8 +2012,8 @@ static int mrg_rrnd(MRG_INFO *info,byte *buf) { isam_info= *(info->current=info->file); info->end=info->current+info->count; - nisam_extra(isam_info,HA_EXTRA_CACHE); nisam_extra(isam_info,HA_EXTRA_RESET); + nisam_extra(isam_info,HA_EXTRA_CACHE); filepos=isam_info->s->pack.header_length; } else @@ -2035,8 +2035,8 @@ static int mrg_rrnd(MRG_INFO *info,byte *buf) info->current++; isam_info= *info->current; filepos=isam_info->s->pack.header_length; - nisam_extra(isam_info,HA_EXTRA_CACHE); nisam_extra(isam_info,HA_EXTRA_RESET); + nisam_extra(isam_info,HA_EXTRA_CACHE); } } |