[Tarantool-patches] [PATCH 1/2] vinyl: init all vars before cleanup in vy_lsm_split_range()
Nikita Pettik
korablev at tarantool.org
Thu Apr 9 13:55:56 MSK 2020
On 09 Apr 11:18, Konstantin Osipov wrote:
> * Nikita Pettik <korablev at tarantool.org> [20/04/09 00:39]:
>
> > + struct errinj *inj = errinj(ERRINJ_VY_MAX_TUPLE_SIZE, ERRINJ_INT);
> > + if (inj != NULL && inj->iparam >= 0) {
> > + if (inj->iparam-- == 0)
> > + total_size = vy_max_tuple_size + 1;
> > + }
>
> shouldn't this be under #ifdef
Looks like not: most of other errinj() calls are not wrapped in
#ifdef NDEBUG macro (in case of debug build errinj() always
returns NULL).
> The patch is LGTM, please solicit another review.
>
>
>
> --
> Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list