[PATCH 7/8] memtx: rework background garbage collection procedure

Konstantin Osipov kostja at tarantool.org
Tue May 22 19:42:00 MSK 2018


* Vladimir Davydov <vdavydov.dev at gmail.com> [18/05/22 17:53]:
> Can't do that, unfortunately: in this implementation a garbage
> collection callback is supposed to free the task on the last iteration
> (as a task embedded in an index) so I can't remove a task from the queue
> after its callback reported there was no more objects to free.
> 
> I can add a comment explaining this. If you have a better idea, please
> share.

Implement a vtab for tasks, with free() virtual method.

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov



More information about the Tarantool-patches mailing list