Add ERROR_INJECT_YIELD and ERROR_INJECT_SLEEP helpers
ERROR_INJECT_YIELD yields the current fiber execution by calling fiber_sleep(0.001) while the given error injection is set. ERROR_INJECT_SLEEP suspends the current thread execution by calling usleep(1000) while the given error injection is set.
Showing
- src/box/memtx_engine.c 2 additions, 14 deletionssrc/box/memtx_engine.c
- src/box/memtx_space.c 29 additions, 50 deletionssrc/box/memtx_space.c
- src/box/relay.cc 2 additions, 4 deletionssrc/box/relay.cc
- src/box/vinyl.c 3 additions, 20 deletionssrc/box/vinyl.c
- src/box/vy_log.c 1 addition, 5 deletionssrc/box/vy_log.c
- src/box/vy_run.c 1 addition, 5 deletionssrc/box/vy_run.c
- src/box/vy_scheduler.c 5 additions, 17 deletionssrc/box/vy_scheduler.c
- src/box/wal.c 1 addition, 3 deletionssrc/box/wal.c
- src/curl.c 1 addition, 6 deletionssrc/curl.c
- src/lib/core/errinj.h 8 additions, 0 deletionssrc/lib/core/errinj.h
Loading
Please register or sign in to comment