1 Star 0 Fork 10

jinlun/dim_9

forked from src-openEuler/dim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-ignore-return-value-if-the-measure-log-is-limited.patch 895 Bytes
一键复制 编辑 原始数据 按行查看 历史
From e5ad2b5264d67694eba932c247d78011da4fd308 Mon Sep 17 00:00:00 2001
From: jinlun <jinlun@huawei.com>
Date: Tue, 18 Jun 2024 09:25:44 +0800
Subject: [PATCH 09/14] ignore return value if the measure log is limited
---
src/measure/dim_measure_baseline.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/measure/dim_measure_baseline.c b/src/measure/dim_measure_baseline.c
index b73b639..185a06e 100644
--- a/src/measure/dim_measure_baseline.c
+++ b/src/measure/dim_measure_baseline.c
@@ -93,7 +93,8 @@ static int measure_log_add(struct dim_measure *m, const char *name,
int ret = dim_measure_log_add(&m->log, name, digest, flag);
if (ret < 0 && ret != -EEXIST) {
dim_err("failed to add measure log of %s: %d\n", name, ret);
- return ret;
+ /* the measure log of this object has been limited */
+ return ret == -ENOSPC ? 0 : ret;
}
return 0;
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jinlun123123/dim_9.git
git@gitee.com:jinlun123123/dim_9.git
jinlun123123
dim_9
dim_9
master

搜索帮助