Skip to content
Snippets Groups Projects
Commit f8732b63 authored by Ali Mohammed's avatar Ali Mohammed
Browse files

find sources, i.e., app and local id, of required distributed cdo pieces

parent 138af129
No related branches found
No related tags found
No related merge requests found
...@@ -324,6 +324,39 @@ mstro_pm_candidates_destroy(mstro_pm_candidates *candidates); ...@@ -324,6 +324,39 @@ mstro_pm_candidates_destroy(mstro_pm_candidates *candidates);
/** Convert the mapping between two distributed layouts found by mmb_layout_compute_intersection
* to a list of candidates (apps, local cdo-ids, offsets, lengths) that satisfy
* the requested distribution from a different source distribution.
* Return MSTRO_OK on success.
**/
static inline
mstro_status
mstro_pm__mmbLayoutIntersecton_to_candidates(
mmbLayoutIntersection *intersection,
size_t dst_index,
mmbLayout *src_layout,
struct per_app_cdo_entries *app_to_attributes_table,
mstro_pm_candidates **candidates);
/** Find an offered distributed cdo with the required exact layout
* (including index),i.e., 1:1 mapping
**/
static inline
mstro_status
mstro_pm__find_cdo_with_layout(
struct per_app_cdo_entries *app_to_attributes_table,
mmbLayout *s_layout,
struct per_app_cdo_entries **app,
uint64_t *local_id);
/** Destroy mstro_pm_candidates **/
static inline
mstro_status
mstro_pm_candidates_destroy(mstro_pm_candidates *candidates);
/**@} (end of group MSTRO_I_PM_Registry) */ /**@} (end of group MSTRO_I_PM_Registry) */
/**@} (end of group MSTRO_Internal) */ /**@} (end of group MSTRO_Internal) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment