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

This commit is contained in:
刘祥超
2024-04-05 10:05:20 +08:00
parent b645c76a07
commit f6e5201cc3

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)