cache query 也需要调用promise_allow_many_successes

This commit is contained in:
zhengchao
2018-11-23 21:13:28 +08:00
parent 9fc2a8a0d2
commit 276a66af8a

View File

@@ -1143,7 +1143,8 @@ int web_cache_async_query(struct cache_handle* handle, unsigned int thread_id,
query_ctx->ref_handle=handle;
query_ctx->url=tfe_strdup(request->req_spec.url);
p=future_to_promise(f);
p=future_to_promise(f);
promise_allow_many_successes(p);
promise_set_ctx(p, query_ctx, cache_query_ctx_free_cb);
ATOMIC_INC(&(handle->stat_val[STAT_CACHE_QUERYING]));