[tarantool-patches] Re: [PATCH 09/10] key_def: pass alloc callback to key_def_dump_parts

  • From: Vladimir Davydov <vdavydov.dev@xxxxxxxxx>
  • To: Konstantin Osipov <kostja@xxxxxxxxxxxxx>
  • Date: Mon, 20 May 2019 11:34:47 +0300

On Sat, May 18, 2019 at 09:52:31PM +0300, Konstantin Osipov wrote:

* Vladimir Davydov <vdavydov.dev@xxxxxxxxx> [19/05/17 17:54]:
So that we can use an allocator different from the region in vylog.

Please, let's simply always use malloc.

I did it this way so as to use lsregion for allocating vylog records in
the next patch. Are you suggesting to use malloc() instead? I guess
that's possible and that'd simplify things quite a bit. I just wanted to
use lock-free allocator for this. Not sure if it's really necessary
though, because vy_log_tx_write isn't a hot path.

Other related posts: