缓存判定未正确处理miss状态,修复此问题。
This commit is contained in:
@@ -421,7 +421,14 @@ void cache_pending_ctx_free_cb(void* p)
|
||||
const struct cached_meta* cache_pending_result_read_meta(future_result_t * result)
|
||||
{
|
||||
struct cache_pending_context* ctx=(struct cache_pending_context*)result;
|
||||
return &(ctx->cached_obj_meta);
|
||||
if(ctx->status==PENDING_RESULT_MISS)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
return &(ctx->cached_obj_meta);
|
||||
}
|
||||
}
|
||||
|
||||
static void cache_query_meta_on_succ(future_result_t * result, void * user)
|
||||
|
||||
Reference in New Issue
Block a user