[PATCH v2 0/2] vinyl: fix bsize and len
Vladimir Davydov
vdavydov.dev at gmail.com
Sun Feb 11 14:12:54 MSK 2018
This patch set fixes bsize and len for vinyl spaces and indexes.
For more details, see patch 2. Patch 1 adds some missing stats
to vinyl-specific index.info() which are needed to calculate
index.bsize().
https://github.com/tarantool/tarantool/issues/2863
https://github.com/tarantool/tarantool/issues/3056
https://github.com/tarantool/tarantool/tree/gh-3056-vy-fix-bsize
v1: <cover.1517759115.git.vdavydov.dev at gmail.com>
Changes in v2:
- Account size of binary data stored on disk in index.bsize()
for secondary indexes.
- Add comments to the code explaining the meaning of bsize
and len in vinyl.
- Add tests checking that bsize and len work as expected for
secondary indexes.
Vladimir Davydov (2):
vinyl: report size of memory used for indexing data in index.info
vinyl: implement space.bsize, index.bsize, and index.len
src/box/vinyl.c | 47 +++++++-
src/box/vy_index.c | 16 +++
src/box/vy_index.h | 8 ++
test/vinyl/constraint.result | 16 ---
test/vinyl/constraint.test.lua | 9 --
test/vinyl/ddl.result | 30 -----
test/vinyl/ddl.test.lua | 15 ---
test/vinyl/info.result | 244 +++++++++++++++++++++++++++++++++++++++--
test/vinyl/info.test.lua | 67 +++++++++++
9 files changed, 370 insertions(+), 82 deletions(-)
--
2.11.0
More information about the Tarantool-patches
mailing list