box: fix usage error messages if FFI is disabled for index read ops
Commit 7f2c7609 ("box: add option to disable Lua FFI for read operations") added an internal configuration option that switches all index read operations from FFI to Lua C, which was necessary to implement space upgrade in the EE repository. Turns out there was a minor bug in that commit - when FFI is disabled, method usage errors (raised when object.method is called instead of object:method) stop working. Fix this bug and add an extensive test that checks that Lua C and FFI implementations of index read operations are equivalent. Fixes https://github.com/tarantool/tarantool-ee/issues/254 NO_DOC=bug fix NO_CHANGELOG=bug manifests itself in only in EE (cherry picked from commit e8d9a7cb)
Showing
- extra/exports 1 addition, 0 deletionsextra/exports
- src/box/lua/index.c 2 additions, 2 deletionssrc/box/lua/index.c
- src/box/lua/schema.lua 5 additions, 5 deletionssrc/box/lua/schema.lua
- test/box-luatest/box_read_ffi_disable_test.lua 122 additions, 0 deletionstest/box-luatest/box_read_ffi_disable_test.lua
Loading
Please register or sign in to comment