From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: imeevma@tarantool.org
Cc: tarantool-patches@freelists.org, v.shpilevoy@tarantool.org
Subject: Re: [tarantool-patches] [PATCH v2 1/1] box: restore region after box.snapshot()
Date: Thu, 15 Nov 2018 14:25:16 +0300 [thread overview]
Message-ID: <20181115112516.xgu2bcqxaoeaqynv@esperanza> (raw)
In-Reply-To: <90fd04c36016067157b95cf689eb8780daf79e96.1542192128.git.imeevma@gmail.com>
On Wed, Nov 14, 2018 at 01:44:29PM +0300, imeevma@tarantool.org wrote:
> Before this patch region wasn't restored after box.snapshot() so
> some tests fail due to "memory leak". This patch adds additional
> memory management and fixes mentioned failures.
Bad comment. It's unclear what this patch actually does to fix the
issue. Looks like you didn't bother to rewrite it in v2.
I fixed it and pushed the patch to 2.1
>
> Closes #3732
> ---
> Issue: https://github.com/tarantool/tarantool/issues/assigned/ImeevMA
Invalid link. BTW, "Issue:" and "Branch:" are usless.
Also, changelog since v2 is missing. And it would be prudent to put
a link here to v1, like this:
Changes in v2:
- Use malloc() in memtx instead of region_alloc().
- Truncate region in engine callbacks rather than in box_snapshot().
v1: https://www.freelists.org/post/tarantool-patches/PATCH-v1-11-box-restore-region-after-boxsnapshot
> Branch: https://github.com/tarantool/tarantool/tree/imeevma/gh-3732-additional-memory-managament-in-box_snapshot
>
> src/box/memtx_engine.c | 41 ++++++++++++++++++++---------------------
> src/box/vy_log.c | 11 ++++++++---
> test/engine/snapshot.result | 35 +++++++++++++++++++++++++++++++++++
> test/engine/snapshot.test.lua | 17 +++++++++++++++++
> 4 files changed, 80 insertions(+), 24 deletions(-)
prev parent reply other threads:[~2018-11-15 11:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-14 10:44 imeevma
2018-11-14 11:08 ` Vladislav Shpilevoy
2018-11-15 11:25 ` Vladimir Davydov [this message]
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=20181115112516.xgu2bcqxaoeaqynv@esperanza \
--to=vdavydov.dev@gmail.com \
--cc=imeevma@tarantool.org \
--cc=tarantool-patches@freelists.org \
--cc=v.shpilevoy@tarantool.org \
--subject='Re: [tarantool-patches] [PATCH v2 1/1] box: restore region after box.snapshot()' \
/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