iSulad/0067-remove-clean_module_fill_ctx-for-libisulad_img.so.patch
zhangxiaoyu ec47dbcb64 remove clean_module_fill_ctx for libisulad_img.so
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
2022-12-22 17:24:58 +08:00

27 lines
1.1 KiB
Diff

From 1fb9cb0f0e894a2a3b6565b9c69ce4694214910e Mon Sep 17 00:00:00 2001
From: zhangxiaoyu <zhangxiaoyu58@huawei.com>
Date: Thu, 22 Dec 2022 17:08:20 +0800
Subject: [PATCH] remove clean_module_fill_ctx for libisulad_img.so
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
---
.../modules/image/oci/storage/rootfs_store/rootfs_store.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/daemon/modules/image/oci/storage/rootfs_store/rootfs_store.c b/src/daemon/modules/image/oci/storage/rootfs_store/rootfs_store.c
index dc1be6c7..1c5d2d84 100644
--- a/src/daemon/modules/image/oci/storage/rootfs_store/rootfs_store.c
+++ b/src/daemon/modules/image/oci/storage/rootfs_store/rootfs_store.c
@@ -238,7 +238,7 @@ static int get_containers_from_json()
append_ret = append_container_by_directory(container_path);
if (append_ret != 0) {
-#ifndef DISABLE_CLEANUP
+#if !defined (DISABLE_CLEANUP) && !defined(LIB_ISULAD_IMG_SO)
clean_module_fill_ctx(BROKEN_ROOTFS, (void *)container_dirs[i]);
#endif
ERROR("Found container path but load json failed: %s, deleting...", container_path);
--
2.25.1