tree-index-opt: make struct key_def an independent member of struct space
Code review fixes for branch tree-index-opt: to avoid unnecessary copying and settle the issue of ownership of key_def structures, move their ownership to struct space. Now Index uses its key_def by pointer, and all key_defs are allocated and freed separately in struct space allocation/deallocation functions. Fix coding style (use Lisp/Emacs style function call style, as per LKML which we follow).
Showing
- mod/box/box.h 11 additions, 6 deletionsmod/box/box.h
- mod/box/box.m 40 additions, 28 deletionsmod/box/box.m
- mod/box/box_lua.m 3 additions, 3 deletionsmod/box/box_lua.m
- mod/box/index.h 5 additions, 5 deletionsmod/box/index.h
- mod/box/index.m 21 additions, 20 deletionsmod/box/index.m
- mod/box/memcached.m 18 additions, 12 deletionsmod/box/memcached.m
- mod/box/tree.h 2 additions, 2 deletionsmod/box/tree.h
- mod/box/tree.m 75 additions, 82 deletionsmod/box/tree.m
Loading
Please register or sign in to comment