[Tarantool-patches] [PATCH v2 1/2] box/error: don't allow overflow of error ref counter

Nikita Pettik korablev at tarantool.org
Mon Apr 20 04:15:37 MSK 2020


On 18 Apr 01:54, Vladislav Shpilevoy wrote:
> Hi! Thanks for the patch!
> 
> Maybe just make the ref counter uint64_t? It will never
> overflow then, and the patch would become of 2 lines.

"Explicit is better than implicit", so I'd prefer explicit error
raising rather than silent reducing counter modulo 2^64.
What is more, making counter unsigned still don't resolve all
problems: reset would result in premature error destruction
meanwhile some Lua object still accessing it.



More information about the Tarantool-patches mailing list