Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 0/2] vinyl: add knob for forcing major compaction
@ 2018-05-18 16:21 Vladimir Davydov
  2018-05-18 16:21 ` [PATCH 1/2] index: add compact method Vladimir Davydov
  2018-05-18 16:21 ` [PATCH 2/2] vinyl: implement index " Vladimir Davydov
  0 siblings, 2 replies; 5+ messages in thread
From: Vladimir Davydov @ 2018-05-18 16:21 UTC (permalink / raw)
  To: kostja; +Cc: tarantool-patches

This patch adds a new Lua method index.compact(). If called on
a vinyl index, this method triggers major compaction. For other
kinds of indexes, it is a no-op.

https://github.com/tarantool/tarantool/issues/3139
https://github.com/tarantool/tarantool/commits/gh-3139-vy-allow-to-force-compaction

Vladimir Davydov (2):
  index: add compact method
  vinyl: implement index compact method

 src/box/index.cc            |  19 +++++++-
 src/box/index.h             |  23 +++++++++
 src/box/lua/index.c         |  15 ++++++
 src/box/lua/schema.lua      |   4 ++
 src/box/memtx_bitset.c      |   1 +
 src/box/memtx_hash.c        |   1 +
 src/box/memtx_rtree.c       |   1 +
 src/box/memtx_tree.c        |   1 +
 src/box/sysview_index.c     |   1 +
 src/box/vinyl.c             |   9 ++++
 src/box/vy_lsm.c            |  13 +++++
 src/box/vy_lsm.h            |   6 +++
 src/box/vy_range.c          |  23 +++++++++
 src/box/vy_range.h          |  12 +++++
 src/box/vy_scheduler.c      |   9 ++++
 src/box/vy_scheduler.h      |   7 +++
 test/vinyl/compact.result   | 114 +++++++++++++++++++++++++++++++++++++++++++-
 test/vinyl/compact.test.lua |  58 +++++++++++++++++++++-
 18 files changed, 312 insertions(+), 5 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-20 21:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-18 16:21 [PATCH 0/2] vinyl: add knob for forcing major compaction Vladimir Davydov
2018-05-18 16:21 ` [PATCH 1/2] index: add compact method Vladimir Davydov
2018-05-20 21:32   ` Konstantin Osipov
2018-05-18 16:21 ` [PATCH 2/2] vinyl: implement index " Vladimir Davydov
2018-05-20 21:33   ` Konstantin Osipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox