[Tarantool-patches] [PATCH 1/1] fk: fix wrong sizeof() in fk_constraint_def_sizeof()

Kirill Yukhin kyukhin at tarantool.org
Thu May 28 10:24:19 MSK 2020


Hello,

On 28 май 01:25, Vladislav Shpilevoy wrote:
> The function returns a number of bytes needed to store
> an fk_constraint_def object with its name and links.
> However it used sizeof(struct fk_constraint) instead
> of sizeof(struct fk_constraint_def) to calculate
> base object size. This worked only because
> fk_constraint is bigger than fk_constraint_def.
> ---
> Branch: http://github.com/tarantool/tarantool/tree/gerold103/fk_constraint_sizeof

Checked into 2.3, 2.4 and master as obvious.

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list