fiber: extend max fiber name length to 255
Users keep complaining about too short fiber name. New limit is 255, should be enough for any sane name. Closes #4394 Reviewed-by:Cyrill Gorcunov <gorcunov@gmail.com> Reviewed-by:
Nikita Pettik <korablev@tarantool.org> @TarantoolBot document Title: fiber.name length limit. It was 32, now it is 255. Besides, it seems like `fiber.name` `{truncate = true}` option is not documented. By default, if a new name is too long, `fiber.name(new_name)` fails with an exception. To make it always succeed there is an option 'truncate': `fiber.name(new_name, {truncate = true})`. It truncates the name to the max length if it is too long.
Showing
- src/lib/core/fiber.c 27 additions, 2 deletionssrc/lib/core/fiber.c
- src/lib/core/fiber.h 12 additions, 3 deletionssrc/lib/core/fiber.h
- src/lua/fiber.c 4 additions, 4 deletionssrc/lua/fiber.c
- test/app/fiber.result 4 additions, 4 deletionstest/app/fiber.result
- test/app/fiber.test.lua 1 addition, 1 deletiontest/app/fiber.test.lua
- test/unit/fiber.cc 3 additions, 3 deletionstest/unit/fiber.cc
- test/unit/fiber.result 1 addition, 1 deletiontest/unit/fiber.result
Loading
Please register or sign in to comment