summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_var.c
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2022-06-02 09:36:35 +0800
committerZhidao HONG <z.hong@f5.com>2022-06-02 09:36:35 +0800
commit0d2d40e23192a281adaf88ce436723c8b7f5e9d3 (patch)
treefda9a80cb70bba064a42c17d1b9833502c024188 /src/nxt_var.c
parent4f16479482f4902aecefdbcd16f3d6e3bf6b67a4 (diff)
downloadunit-0d2d40e23192a281adaf88ce436723c8b7f5e9d3.tar.gz
unit-0d2d40e23192a281adaf88ce436723c8b7f5e9d3.tar.bz2
Summary: Var: removing all async stuff.
No functional changes.
Diffstat (limited to 'src/nxt_var.c')
-rw-r--r--src/nxt_var.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/nxt_var.c b/src/nxt_var.c
index 0a722d17..458ba678 100644
--- a/src/nxt_var.c
+++ b/src/nxt_var.c
@@ -494,17 +494,12 @@ nxt_var_query(nxt_task_t *task, nxt_var_query_t *query, nxt_var_t *var,
continue; /* NXT_DECLINED */
}
- ret = nxt_var_index[index](task, query, value, query->ctx);
+ ret = nxt_var_index[index](task, value, query->ctx);
+ if (nxt_slow_path(ret != NXT_OK)) {
+ goto fail;
+ }
value = NULL;
-
- if (ret != NXT_OK) {
- if (nxt_slow_path(ret != NXT_AGAIN)) {
- goto fail;
- }
-
- query->waiting++;
- }
}
query->spare = value;