diff options
author | heikki@hundin.mysql.fi <> | 2003-01-18 15:01:56 +0200 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2003-01-18 15:01:56 +0200 |
commit | 8fc51bb42776e4463923413b6a4371a5812c5de0 (patch) | |
tree | 8d5283cbff706ae037c9b193df41ddaa63191387 /innobase/include | |
parent | c1d614192ee6930aed50f0cf64bf60abf6c1acb0 (diff) | |
download | mariadb-git-8fc51bb42776e4463923413b6a4371a5812c5de0.tar.gz |
btr0sea.h, btr0sea.c:
Fix a crash in page_dir_find_owner_slot if an adaptive hash index search coincides with purge or an insert
Diffstat (limited to 'innobase/include')
-rw-r--r-- | innobase/include/btr0sea.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/innobase/include/btr0sea.h b/innobase/include/btr0sea.h index 14feca5d5c5..ee762a12221 100644 --- a/innobase/include/btr0sea.h +++ b/innobase/include/btr0sea.h @@ -234,10 +234,16 @@ struct btr_search_sys_struct{ extern btr_search_sys_t* btr_search_sys; /* The latch protecting the adaptive search system: this latch protects the -(1) positions of records on those pages where a hash index has been built. -NOTE: It does not protect values of non-ordering fields within a record from -being updated in-place! We can use fact (1) to perform unique searches to -indexes. */ +(1) hash index; +(2) columns of a record to which we have a pointer in the hash index; + +but does NOT protect: + +(3) next record offset field in a record; +(4) next or previous records on the same page. + +Bear in mind (3) and (4) when using the hash index. +*/ extern rw_lock_t* btr_search_latch_temp; |