Refactor coio_task
* Add coio_task_create() and coio_task_destroy() * Rename coio_task() to coio_task_post() * Fix the core invariant of coio_task_post(): - On timeout or when fiber was cancelled set diag, return -1 and guarantee that on_timeout will be called somewhen. - Otherwise don't touch diag, don't call on_timeout callback, return 0. Please check task->base.result and task->diag to get the original return code and diag from the callback. * Change the return value of coio_task_post() to "int". * Add diag to coio_getaddrinfo() and fix a possible bug in replication; ignore uncoventional getaddrinfo(3) error codes for now. * Fix buggy box.snapshot() tests. Needed for #1954
Showing
- src/coeio.c 58 additions, 44 deletionssrc/coeio.c
- src/coeio.h 45 additions, 6 deletionssrc/coeio.h
- test/app/fiber.result 0 additions, 8 deletionstest/app/fiber.result
- test/app/fiber.test.lua 0 additions, 2 deletionstest/app/fiber.test.lua
- test/box-py/snapshot.result 0 additions, 4 deletionstest/box-py/snapshot.result
- test/box-py/snapshot.test.py 0 additions, 1 deletiontest/box-py/snapshot.test.py
- test/wal_off/wal_mode.result 0 additions, 4 deletionstest/wal_off/wal_mode.result
- test/wal_off/wal_mode.test.lua 0 additions, 1 deletiontest/wal_off/wal_mode.test.lua
Loading
Please register or sign in to comment