From 928443c5c89803e7d1ca95dfc2db1b0acaeb9380 Mon Sep 17 00:00:00 2001 From: Amin Ben Romdhane Date: Tue, 24 Jun 2025 14:50:23 +0200 Subject: [PATCH] Make sure to refresh references db before calling set method to ensure that all references are stored in the database --- libbbfdm-ubus/bbfdm-ubus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libbbfdm-ubus/bbfdm-ubus.c b/libbbfdm-ubus/bbfdm-ubus.c index acf6a841..e3fb9ac1 100644 --- a/libbbfdm-ubus/bbfdm-ubus.c +++ b/libbbfdm-ubus/bbfdm-ubus.c @@ -348,6 +348,9 @@ int bbfdm_set_handler(struct ubus_context *ctx, struct ubus_object *obj, fill_optional_data(&data, tb[DM_SET_OPTIONAL]); + // Make sure to refresh references db before calling set method to ensure that all references are stored in the database + bbfdm_refresh_references(data.bbf_ctx.dm_type, obj->name); + BBF_INFO("ubus method|%s|, name|%s|, path(%s)", method, obj->name, path); blob_buf_init(&data.bb, 0);