* [PATCH v1 1/1] box: restart garbage collector
@ 2018-12-20 15:13 imeevma
2018-12-20 16:01 ` Vladimir Davydov
0 siblings, 1 reply; 2+ messages in thread
From: imeevma @ 2018-12-20 15:13 UTC (permalink / raw)
To: vdavydov.dev, tarantool-patches; +Cc: v.shpilevoy
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-20 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-20 15:13 [PATCH v1 1/1] box: restart garbage collector imeevma
2018-12-20 16:01 ` Vladimir Davydov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox