mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 03:00:27 +08:00
上传指标数据时忽略不完整数据
This commit is contained in:
@@ -467,6 +467,9 @@ func (this *KVTask) uploadServerStats(rpcClient *rpc.RPCClient, serverId int64,
|
|||||||
{
|
{
|
||||||
sumValue, err := this.sumTable.Get(prefix)
|
sumValue, err := this.sumTable.Get(prefix)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if kvstore.IsNotFound(err) {
|
||||||
|
return 0, nil
|
||||||
|
}
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
count, total = DecodeSumValue(sumValue)
|
count, total = DecodeSumValue(sumValue)
|
||||||
|
|||||||
Reference in New Issue
Block a user