提交 5e58304c 编写于 作者: S Shenglian Zhou 提交者: shenglian zhou

[TD-5861]<feature>:fix windows compilation error

上级 2659b46e
......@@ -116,8 +116,7 @@ bool metricsProcessRequest(HttpContext* pContext) {
{
const int8_t numTiers = 3;
SFSMeta fsMeta;
STierMeta tierMetas[numTiers];
memset(tierMetas, 0, 3 * sizeof(STierMeta));
STierMeta* tierMetas = calloc(numTiers, sizeof(STierMeta));
tfsUpdateInfo(&fsMeta, tierMetas, numTiers);
{
char* keyDiskUsed = "disk_used";
......@@ -138,6 +137,7 @@ bool metricsProcessRequest(HttpContext* pContext) {
}
httpJsonToken(jsonBuf, JsonArrEnd);
}
free(tierMetas);
}
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册