vinyl: add helpers to add/check statement with bloom
A Vinyl statement may be either a key or a tuple. We must use different functions for the two kinds when working with a bloom filter. Let's introduce helpers incorporating that logic. Notes: - Currently, we never add keys to bloom filters, but after the next patch we will, so this patch adds tuple_bloom_builder_add_key helper. - According to the function protocol, tuple_bloom_builder_add may fail with out-of-memory, but we never checked that. Fix that while we are at it.
Showing
- src/box/tuple_bloom.c 23 additions, 0 deletionssrc/box/tuple_bloom.c
- src/box/tuple_bloom.h 13 additions, 0 deletionssrc/box/tuple_bloom.h
- src/box/vy_run.c 14 additions, 23 deletionssrc/box/vy_run.c
- src/box/vy_stmt.c 29 additions, 0 deletionssrc/box/vy_stmt.c
- src/box/vy_stmt.h 18 additions, 0 deletionssrc/box/vy_stmt.h
Loading
Please register or sign in to comment