From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 22 May 2018 19:42:00 +0300 From: Konstantin Osipov Subject: Re: [PATCH 7/8] memtx: rework background garbage collection procedure Message-ID: <20180522164200.GB28644@atlas> References: <20180522135634.GG11201@atlas> <20180522144910.h65mzowfouavcgil@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180522144910.h65mzowfouavcgil@esperanza> To: Vladimir Davydov Cc: tarantool-patches@freelists.org List-ID: * Vladimir Davydov [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