上传指标数据时忽略不完整数据

This commit is contained in:
GoEdgeLab
2024-04-05 10:05:20 +08:00
parent 8ffab70249
commit 57d8f5135a

View File

@@ -467,6 +467,9 @@ func (this *KVTask) uploadServerStats(rpcClient *rpc.RPCClient, serverId int64,
{
sumValue, err := this.sumTable.Get(prefix)
if err != nil {
if kvstore.IsNotFound(err) {
return 0, nil
}
return 0, err
}
count, total = DecodeSumValue(sumValue)