From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 6 Sep 2018 10:39:12 +0300 From: Konstantin Osipov Subject: Re: [PATCH 7/8] vinyl: don't start scheduler fiber until local recovery is complete Message-ID: <20180906073912.GG8205@chai> References: <8dd7a2f1d46aae68e3509311826f9f6efc8bc49e.1536080993.git.vdavydov.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8dd7a2f1d46aae68e3509311826f9f6efc8bc49e.1536080993.git.vdavydov.dev@gmail.com> To: Vladimir Davydov Cc: tarantool-patches@freelists.org List-ID: * Vladimir Davydov [18/09/04 20:59]: > We must not schedule any background jobs during local recovery, because > they may disrupt yet to be recovered data stored on disk. Since we start > the scheduler fiber as soon as the engine is initialized, we have to > pull some tricks to make sure it doesn't schedule any tasks: the > scheduler fiber function yields immediately upon startup; we assume > that it won't be woken up until local recovery is complete, because we > don't set the memory limit until then. OK to push. I esp. like this change. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov