cache query 也需要调用promise_allow_many_successes
This commit is contained in:
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user