• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 19960938468

05 Dec 2025 11:07AM UTC coverage: 87.669% (+0.01%) from 87.655%
19960938468

push

github

sergepetrenko
box: fix _func id overflow

Each time one used the `box.schema.func.create`, the primary key of
the resulted function increased because of the
`_func:auto_increment`. Now the new key is chosen by the
`generate_func_id` in Lua and `OP_GenFuncid` SQL opcode, both implemented
using the new `box_generate_func_id` function that shares logic with
`box_generate_space_id`. Hence we are scanning the entire range of
possible ids `[0, BOX_FUNCTION_MAX)` before we are returning an
error.

Fixes #11849
Fixes #11851
NO_DOC=bugfix

70290 of 118240 branches covered (59.45%)

33 of 34 new or added lines in 5 files covered. (97.06%)

76 existing lines in 15 files now uncovered.

105628 of 120485 relevant lines covered (87.67%)

1398298.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.38
/src/lua/init.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc