-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
router: wrap is_async futures completely
Router used to override :result() method of netbox futures. It is needed because user functions are called via vshard.storage.call() which returns some metadata - it must be truncated before returning the user's data. It worked fine while netbox futures were implemented as tables. But in the newest Tarantool most of netbox state machine code is moved into C. The futures now are C structs. They allow to add new members, but can't override their methods. As a result, on the newest Tarantool is_async in vshard.router.call() simply didn't work. The patch wraps netbox futures completely with a Lua table, not just overrides one method. Now it works the same on all Tarantool versions starting from 1.10. Closes #294
- Loading branch information
Showing
4 changed files
with
542 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.