[Tarantool-patches] [PATCH 2/3] lua: table.deepcopy ignores __pairs metamethod

Igor Munkin imun at tarantool.org
Thu Feb 20 14:00:26 MSK 2020


Oleg,

Thanks for the patch, but since we reverted the corresponding
breakage[1] I guess the changes are irrelevant. Discarding it.

On 13.02.20, olegrok at tarantool.org wrote:
> From: Oleg Babin <babinoleg at mail.ru>
> 
> After 1d85144a9b4bbbb026402848efde1ab98bf72633
> table.deepcopy changed the behaviour and started
> iterate through tables considering __pairs metamethod.
> In some cases it broke backward compatibility.
> To avoid such problem let's ignore __pairs
> and iterate through tables as it was before
> 
> Closes #4770
> Follow-up #4560
> ---
> Issue: https://github.com/tarantool/tarantool/issues/4770
> Branch: https://github.com/tarantool/tarantool/tree/olegrok/table-fixes
>  src/lua/table.lua           |  7 ++++++-
>  test/app-tap/table.test.lua | 26 +++++++++++++++++++++++++-
>  2 files changed, 31 insertions(+), 2 deletions(-)
> 

<snipped>

> -- 
> 2.23.0
> 

[1]: https://lists.tarantool.org/pipermail/tarantool-patches/2020-February/014304.html

-- 
Best regards,
IM


More information about the Tarantool-patches mailing list