HEAD元信息解析JSON获取对象大小使用double
This commit is contained in:
2
cache/src/tango_cache_client.cpp
vendored
2
cache/src/tango_cache_client.cpp
vendored
@@ -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
|
||||||
|
|||||||
2
cache/src/tango_cache_redis.cpp
vendored
2
cache/src/tango_cache_redis.cpp
vendored
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user