From 02deaba59db239a642c00f14f70d2a6e47f33daa Mon Sep 17 00:00:00 2001 From: zhangchengwei Date: Mon, 15 Oct 2018 16:53:04 +0800 Subject: [PATCH] =?UTF-8?q?tango=5Fcache=5Fread=5Fresult=E7=AD=89=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cache/include/tango_cache_client.h | 2 +- cache/src/tango_cache_client.cpp | 2 +- cache/src/tango_cache_client_in.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cache/include/tango_cache_client.h b/cache/include/tango_cache_client.h index 75c4e10..a0eda49 100644 --- a/cache/include/tango_cache_client.h +++ b/cache/include/tango_cache_client.h @@ -113,7 +113,7 @@ struct tango_cache_instance *tango_cache_instance_new(struct event_base* evbase, //future不可以为NULL int tango_cache_fetch_object(struct tango_cache_instance *instance, struct future* f, struct tango_cache_meta_get *meta); //从promise_success的result参数提取结果 -struct tango_cache_result *tango_cache_read_result(void *promise_result); +struct tango_cache_result *tango_cache_read_result(future_result_t *promise_result); /* DELETE接口的API*/ diff --git a/cache/src/tango_cache_client.cpp b/cache/src/tango_cache_client.cpp index 140b7e0..5a05e9a 100644 --- a/cache/src/tango_cache_client.cpp +++ b/cache/src/tango_cache_client.cpp @@ -109,7 +109,7 @@ void tango_cache_get_statistics(const struct tango_cache_instance *instance, str out->memory_used = instance->statistic.memory_used; } -struct tango_cache_result *tango_cache_read_result(void *promise_result) +struct tango_cache_result *tango_cache_read_result(future_result_t *promise_result) { return (struct tango_cache_result *)promise_result; } diff --git a/cache/src/tango_cache_client_in.h b/cache/src/tango_cache_client_in.h index 879bd1e..9dfb97e 100644 --- a/cache/src/tango_cache_client_in.h +++ b/cache/src/tango_cache_client_in.h @@ -145,9 +145,9 @@ void tango_cache_ctx_destroy(struct tango_cache_ctx *ctx); void tango_cache_set_fail_state(struct tango_cache_ctx *ctx, enum CACHE_ERR_CODE error_code); const char *tango_cache_get_errstring(const struct tango_cache_ctx *ctx); -struct tango_cache_ctx *tango_cache_update_prepare(struct tango_cache_instance *instance, struct future* future, struct tango_cache_meta_put *meta); -struct tango_cache_ctx *tango_cache_fetch_prepare(struct tango_cache_instance *instance, struct future* future, struct tango_cache_meta_get *meta); -struct tango_cache_ctx *tango_cache_delete_prepare(struct tango_cache_instance *instance, struct future* future, const char *objkey); +struct tango_cache_ctx *tango_cache_update_prepare(struct tango_cache_instance *instance, struct future* f, struct tango_cache_meta_put *meta); +struct tango_cache_ctx *tango_cache_fetch_prepare(struct tango_cache_instance *instance, struct future* f, struct tango_cache_meta_get *meta); +struct tango_cache_ctx *tango_cache_delete_prepare(struct tango_cache_instance *instance, struct future* f, const char *objkey); #endif