From: imeevma@tarantool.org
To: vdavydov.dev@gmail.com, tarantool-patches@freelists.org
Cc: v.shpilevoy@tarantool.org
Subject: [PATCH v1 1/1] box: restart garbage collector
Date: Thu, 20 Dec 2018 18:13:48 +0300 [thread overview]
Message-ID: <19d47675c8b3db1efea3dfcaa8d816b90223c84d.1545318723.git.imeevma@gmail.com> (raw)
Garbage collector should be restarted after it has been stopped.
Follow up to #3224
---
https://github.com/tarantool/tarantool/issues/3224
https://github.com/tarantool/tarantool/tree/imeevma/gh-3224-tuple-bugrefs
test/box/select.result | 5 +++++
test/box/select.test.lua | 2 ++
2 files changed, 7 insertions(+)
diff --git a/test/box/select.result b/test/box/select.result
index b3ee6cd..a6c89c9 100644
--- a/test/box/select.result
+++ b/test/box/select.result
@@ -672,6 +672,11 @@ collectgarbage('collect')
---
- 0
...
+-- GC should be restarted after it was stopped.
+collectgarbage('restart')
+---
+- 0
+...
lots_of_links
---
- []
diff --git a/test/box/select.test.lua b/test/box/select.test.lua
index 3400bda..2570322 100644
--- a/test/box/select.test.lua
+++ b/test/box/select.test.lua
@@ -144,5 +144,7 @@ for k, v in pairs(lots_of_links) do ref_count = ref_count + 1 end
ref_count
-- check that tuples are deleted after gc is activated
collectgarbage('collect')
+-- GC should be restarted after it was stopped.
+collectgarbage('restart')
lots_of_links
s:drop()
--
2.7.4
next reply other threads:[~2018-12-20 15:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 15:13 imeevma [this message]
2018-12-20 16:01 ` Vladimir Davydov
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=19d47675c8b3db1efea3dfcaa8d816b90223c84d.1545318723.git.imeevma@gmail.com \
--to=imeevma@tarantool.org \
--cc=tarantool-patches@freelists.org \
--cc=v.shpilevoy@tarantool.org \
--cc=vdavydov.dev@gmail.com \
--subject='Re: [PATCH v1 1/1] box: restart garbage collector' \
/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