From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 5 Oct 2018 00:44:13 +0300 From: Konstantin Osipov Subject: Re: [PATCH 02/13] vinyl: force deletion of runs left from unfinished indexes on restart Message-ID: <20181004214413.GB22855@chai> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: Vladimir Davydov Cc: tarantool-patches@freelists.org List-ID: * Vladimir Davydov [18/10/05 00:11]: > If an instance is restarted while building a new vinyl index, there will > probably be some run files left. Currently, we won't delete such files > until box.snapshot() is called, even though there's no point in keeping > them around. Let's tweak vy_gc_lsm() so that it marks all runs that > belong to an unfinished index as incomplete to force vy_gc() to remove > them immediately after recovery is complete. I don't see a point yet, but I assume you need it for something, so OK to push. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov