Skip to content

Commit

Permalink
Add recursive checking in ddsi_type_resolved
Browse files Browse the repository at this point in the history
In case ddsi_type_resolved_locked is called to check the resolved state
including dependent types (kind is DDSI_TYPE_INCLUDE_DEPS), the
check should be done recursively for all dependencies of the type
that is passed.

Signed-off-by: Dennis Potman <[email protected]>
  • Loading branch information
dpotman authored and eboasson committed Mar 27, 2023
1 parent 11a6136 commit e646e3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ddsi/src/ddsi_typelib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,8 @@ bool ddsi_type_resolved_locked (struct ddsi_domaingv *gv, const struct ddsi_type
struct ddsi_type *dep_type = ddsi_type_lookup_locked (gv, &dep->dep_type_id);
if (dep_type && ddsi_xt_is_unresolved (&dep_type->xt))
resolved = false;
else
resolved = ddsi_type_resolved_locked (gv, dep_type, resolved_kind);
}
ddsi_typeid_fini (&tmpl.src_type_id);
}
Expand Down

0 comments on commit e646e3b

Please sign in to comment.