diff options
author | knielsen@mysql.com <> | 2006-03-13 16:07:00 +0100 |
---|---|---|
committer | knielsen@mysql.com <> | 2006-03-13 16:07:00 +0100 |
commit | 4d3ad1564dd5f746af02cbe6ac5f842a554adf11 (patch) | |
tree | da9de10edd1cabd451b73701158e76bc67447e79 /storage/innobase | |
parent | d39e92049f6d662a283fa582b450662ee890cae6 (diff) | |
download | mariadb-git-4d3ad1564dd5f746af02cbe6ac5f842a554adf11.tar.gz |
Misc. portability compile fixes.
Diffstat (limited to 'storage/innobase')
-rw-r--r-- | storage/innobase/btr/btr0sea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/btr/btr0sea.c b/storage/innobase/btr/btr0sea.c index a2f571f11e9..d8c3cfb7eda 100644 --- a/storage/innobase/btr/btr0sea.c +++ b/storage/innobase/btr/btr0sea.c @@ -1604,12 +1604,12 @@ btr_search_validate(void) mem_heap_t* heap = NULL; ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; - *offsets_ = (sizeof offsets_) / sizeof *offsets_; - /* How many cells to check before temporarily releasing btr_search_latch. */ ulint chunk_size = 10000; + *offsets_ = (sizeof offsets_) / sizeof *offsets_; + rw_lock_x_lock(&btr_search_latch); cell_count = hash_get_n_cells(btr_search_sys->hash_index); |