mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Make sure to refresh references db before calling set method to ensure that all references are stored in the database
This commit is contained in:
parent
aa74995f9b
commit
928443c5c8
1 changed files with 3 additions and 0 deletions
|
|
@ -348,6 +348,9 @@ int bbfdm_set_handler(struct ubus_context *ctx, struct ubus_object *obj,
|
||||||
|
|
||||||
fill_optional_data(&data, tb[DM_SET_OPTIONAL]);
|
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);
|
BBF_INFO("ubus method|%s|, name|%s|, path(%s)", method, obj->name, path);
|
||||||
|
|
||||||
blob_buf_init(&data.bb, 0);
|
blob_buf_init(&data.bb, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue