Skip to content

Commit

Permalink
Changed find_targets to find_nodes.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Fetros <[email protected]>
  • Loading branch information
PetFet committed Apr 8, 2020
1 parent 32ede35 commit 3c94800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/placement/jump_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ count_available_spares(struct pl_jump_map *jmap, struct pl_obj_layout *layout,
uint32_t unusable_tgts;
uint32_t num_targets;

num_targets = pool_map_find_target(jmap->jmp_map.pl_poolmap,
PO_COMP_ID_ALL, NULL);
num_targets = pool_map_find_domain(jmap->jmp_map.pl_poolmap,
jmap->min_redundant_dom, PO_COMP_ID_ALL, NULL);

/* we might not have any valid targets left at all */
unusable_tgts = layout->ol_nr;
Expand Down
1 change: 0 additions & 1 deletion src/placement/tests/jump_map_place_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ reint_object_class(daos_oclass_id_t cid)
int
main(int argc, char **argv)
{
// struct daos_oclass_attr *obj_attr;
daos_oclass_id_t *test_classes;
uint32_t num_test_oc;
char oclass_name[50];
Expand Down

0 comments on commit 3c94800

Please sign in to comment.