[PATCH v1 1/1] box: restart garbage collector

imeevma at tarantool.org imeevma at tarantool.org
Thu Dec 20 18:13:48 MSK 2018


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




More information about the Tarantool-patches mailing list