Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: kostja@tarantool.org
Cc: tarantool-patches@freelists.org
Subject: [PATCH 0/2] vinyl: add knob for forcing major compaction
Date: Fri, 18 May 2018 19:21:32 +0300	[thread overview]
Message-ID: <cover.1526658945.git.vdavydov.dev@gmail.com> (raw)

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

             reply	other threads:[~2018-05-18 16:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-18 16:21 Vladimir Davydov [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1526658945.git.vdavydov.dev@gmail.com \
    --to=vdavydov.dev@gmail.com \
    --cc=kostja@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [PATCH 0/2] vinyl: add knob for forcing major compaction' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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