-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server: restore exec() sparse output support #351
Conversation
ea2cc8d
to
3eb6f10
Compare
3eb6f10
to
962241b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change the the commit message
from
exec: ...
to
server: restore sparse output support from exec
After [1], returning values after nil (for example, classic `return nil, err` scenario) is broken. This patch restores the behavior. Since server doesn't always has access to `require('luatest.utils')`, utility is provided through its dump. Since `net.box` already handles `nil` args input with `box.NULL`, everything is fine for exec arguments. 1. e6a2093 Closes #350
962241b
to
c8b69bf
Compare
That's fair, updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Simplify code from PR #351 based on @Totktonada advice. Follows #350
Simplify code from PR #351 based on @Totktonada advice. Follows #350
After [1], returning values after nil (for example, classic
return nil, err
scenario) is broken. This patch restores the behavior. Since server doesn't always has access torequire('luatest.utils')
, utility is provided through its dump. Sincenet.box
already handlesnil
args input withbox.NULL
, everything is fine for exec arguments.I didn't forget about
Close #350