HEAD元信息解析JSON获取对象大小使用double

This commit is contained in:
zhangchengwei
2018-11-25 14:59:58 +08:00
parent 62e7f984da
commit 42906a6ef4
2 changed files with 2 additions and 2 deletions

View File

@@ -810,7 +810,7 @@ struct tango_cache_parameter *tango_cache_parameter_new(const char* profile_path
param->max_cnn_host = intval; param->max_cnn_host = intval;
MESA_load_profile_uint_def(profile_path, section, "MAX_CNNT_PIPELINE_NUM", &intval, 20); MESA_load_profile_uint_def(profile_path, section, "MAX_CNNT_PIPELINE_NUM", &intval, 20);
param->max_pipeline_num = intval; param->max_pipeline_num = intval;
MESA_load_profile_uint_def(profile_path, section, "MAX_CURL_TRANSFER_TIMEOUT_S", &intval, 15); MESA_load_profile_uint_def(profile_path, section, "MAX_CURL_TRANSFER_TIMEOUT_S", &intval, 0);
param->transfer_timeout = intval; param->transfer_timeout = intval;
//instance //instance

View File

@@ -212,7 +212,7 @@ static int parse_minio_events_json(struct tango_cache_ctx *ctx, const char *jcon
{ {
goto out_json; goto out_json;
} }
ctx->get.result.tlength = ptarget->valueint; //TODO: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4GB<47><42>ô<EFBFBD> ctx->get.result.tlength = ptarget->valuedouble;
if(NULL == (ptarget=cJSON_GetObjectItem(pobject, "userMetadata")) || ptarget->type!=cJSON_Object) if(NULL == (ptarget=cJSON_GetObjectItem(pobject, "userMetadata")) || ptarget->type!=cJSON_Object)
{ {
goto out_json; goto out_json;