memtx: pass engine to memory allocation functions
We need this so that we can force garbage collection when we are short on memory. There are two such functions: one is used for allocating index extents, another for allocating tuples. Index allocating function has an opaque context so we simply reuse it for passing memtx engine to it. To pass memtx engine to tuple allocating function, we add an opaque engine specific pointer to tuple_format and set it to memtx_engine for memtx spaces.
Showing
- src/box/memtx_bitset.c 1 addition, 1 deletionsrc/box/memtx_bitset.c
- src/box/memtx_engine.c 10 additions, 3 deletionssrc/box/memtx_engine.c
- src/box/memtx_engine.h 3 additions, 1 deletionsrc/box/memtx_engine.h
- src/box/memtx_hash.c 1 addition, 1 deletionsrc/box/memtx_hash.c
- src/box/memtx_rtree.c 1 addition, 1 deletionsrc/box/memtx_rtree.c
- src/box/memtx_space.c 3 additions, 1 deletionsrc/box/memtx_space.c
- src/box/memtx_tree.c 2 additions, 3 deletionssrc/box/memtx_tree.c
- src/box/tuple_format.c 1 addition, 0 deletionssrc/box/tuple_format.c
- src/box/tuple_format.h 2 additions, 0 deletionssrc/box/tuple_format.h
Loading
Please register or sign in to comment