Skip to content
Snippets Groups Projects
Commit 8ee56df0 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

errinj: add SPACE_UPGRADE_DELAY error injection

It will be used to stall background space upgrade in tests.

While we are at it, move ERRINJ_TX_DELAY_PRIO_ENDPOINT to restore
the sorted order of the error injection list.

Follow-up commit 38b25832 ("box: add space upgrade stubs").

NO_DOC=internal
NO_TEST=internal
NO_CHANGELOG=internal

(cherry picked from commit d772aef9)
parent 30470af9
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,7 @@ struct errinj {
_(ERRINJ_SNAP_COMMIT_DELAY, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_SNAP_COMMIT_FAIL, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_SNAP_WRITE_DELAY, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_SPACE_UPGRADE_DELAY, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_SQL_NAME_NORMALIZATION, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_STDIN_ISATTY, ERRINJ_INT, {.iparam = -1}) \
_(ERRINJ_SWIM_FD_ONLY, ERRINJ_BOOL, {.bparam = false}) \
......@@ -126,6 +127,7 @@ struct errinj {
_(ERRINJ_TUPLE_FIELD, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_TUPLE_FIELD_COUNT_LIMIT, ERRINJ_INT, {.iparam = -1}) \
_(ERRINJ_TUPLE_FORMAT_COUNT, ERRINJ_INT, {.iparam = -1}) \
_(ERRINJ_TX_DELAY_PRIO_ENDPOINT, ERRINJ_DOUBLE, {.dparam = 0}) \
_(ERRINJ_TXN_COMMIT_ASYNC, ERRINJ_BOOL, {.bparam = false})\
_(ERRINJ_VYRUN_DATA_READ, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_VY_COMPACTION_DELAY, ERRINJ_BOOL, {.bparam = false}) \
......@@ -170,7 +172,6 @@ struct errinj {
_(ERRINJ_XLOG_META, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_XLOG_READ, ERRINJ_INT, {.iparam = -1}) \
_(ERRINJ_XLOG_RENAME_DELAY, ERRINJ_BOOL, {.bparam = false}) \
_(ERRINJ_TX_DELAY_PRIO_ENDPOINT, ERRINJ_DOUBLE, {.dparam = 0}) \
ENUM0(errinj_id, ERRINJ_LIST);
extern struct errinj errinjs[];
......
......@@ -92,6 +92,7 @@ evals
- ERRINJ_SNAP_COMMIT_DELAY: false
- ERRINJ_SNAP_COMMIT_FAIL: false
- ERRINJ_SNAP_WRITE_DELAY: false
- ERRINJ_SPACE_UPGRADE_DELAY: false
- ERRINJ_SQL_NAME_NORMALIZATION: false
- ERRINJ_STDIN_ISATTY: -1
- ERRINJ_SWIM_FD_ONLY: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment