diff options
author | unknown <monty@mysql.com> | 2005-11-24 06:15:35 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-11-24 06:15:35 +0200 |
commit | 0db7a010e4696a289c38e11eba9d6c6528e45d5c (patch) | |
tree | 679304b4beec8c60c002eae5bc3e5a5438cb6df3 /include/my_bitmap.h | |
parent | 81b2bbac056f21b0783f21a5830c07aba4850d85 (diff) | |
download | mariadb-git-0db7a010e4696a289c38e11eba9d6c6528e45d5c.tar.gz |
Added bitmap_buffer_size()
Removed valgrind warnings when using not aligned bitmap buffer size
Added setting of thread_stack
include/my_bitmap.h:
Added bitmap_buffer_size()
sql/handler.cc:
use bitmap_buffer_size()
sql/opt_range.cc:
use bitmap_buffer_size()
sql/sql_insert.cc:
Use bitmap_buffer_size()
sql/sql_parse.cc:
Added setting of thread_stack when taking thread from thread cache
sql/sql_plugin.cc:
Set thread_stack
Diffstat (limited to 'include/my_bitmap.h')
-rw-r--r-- | include/my_bitmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_bitmap.h b/include/my_bitmap.h index b7ad575b2d3..33cd61de8a0 100644 --- a/include/my_bitmap.h +++ b/include/my_bitmap.h @@ -84,6 +84,7 @@ extern void bitmap_lock_xor(MY_BITMAP *map, const MY_BITMAP *map2); extern void bitmap_lock_invert(MY_BITMAP *map); #endif /* Fast, not thread safe, bitmap functions */ +#define bitmap_buffer_size(bits) 4*(((bits)+31)/32); #define no_bytes_in_map(map) (((map)->n_bits + 7)/8) #define no_words_in_map(map) (((map)->n_bits + 31)/32) #define bytes_word_aligned(bytes) (4*((bytes + 3)/4)) |