From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: imeevma@tarantool.org Subject: [PATCH v1 1/1] box: restart garbage collector Date: Thu, 20 Dec 2018 18:13:48 +0300 Message-Id: <19d47675c8b3db1efea3dfcaa8d816b90223c84d.1545318723.git.imeevma@gmail.com> To: vdavydov.dev@gmail.com, tarantool-patches@freelists.org Cc: v.shpilevoy@tarantool.org List-ID: 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