iproto: don't account message twice in case of override fallback
We need to call `tx_accept_msg` in `tx_process_override` before we pass message to the override handler. Unfortunately if handler response with IPROTO_HANDLER_FALLBACK we call the builtin handler for message that calls `tx_accept_msg` again which is not expected. Some actions of this function are idempotent and some are not. Let's make the function NOP if it called once again. Closes #9345 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-9345-fix-iproto-override-double-request-account.md 4 additions, 0 deletions...sed/gh-9345-fix-iproto-override-double-request-account.md
- src/box/iproto.cc 10 additions, 0 deletionssrc/box/iproto.cc
- test/box-luatest/iproto_request_handlers_overriding_test.lua 15 additions, 0 deletionstest/box-luatest/iproto_request_handlers_overriding_test.lua
Loading
Please register or sign in to comment