diff options
| author | zhengchao <[email protected]> | 2018-11-23 21:13:28 +0800 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2018-11-23 21:20:52 +0800 |
| commit | 276a66af8a1b152a15f85ba42c43778be7d14b8e (patch) | |
| tree | cf11de5cf3e12cb50201a0485bd9610bb39eb90f /plugin/business/pangu-http/src/pangu_web_cache.cpp | |
| parent | 9fc2a8a0d229274741d8db1fb0a0fc9253e61eea (diff) | |
cache query 也需要调用promise_allow_many_successes
Diffstat (limited to 'plugin/business/pangu-http/src/pangu_web_cache.cpp')
| -rw-r--r-- | plugin/business/pangu-http/src/pangu_web_cache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/business/pangu-http/src/pangu_web_cache.cpp b/plugin/business/pangu-http/src/pangu_web_cache.cpp index 50e720b..8f89d93 100644 --- a/plugin/business/pangu-http/src/pangu_web_cache.cpp +++ b/plugin/business/pangu-http/src/pangu_web_cache.cpp @@ -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])); |
