Skip to content

Commit

Permalink
DAOS-5298 cleanup and fix for EC aggregation (#4398)
Browse files Browse the repository at this point in the history
* DAOS-5298 cleanup and fix for EC aggregation

- Add inline functions to ease access to structure members
- remove debug code from do_obj_ioc_begin
- reduce code indentation of a few functions

Fixes:
- bug fix for the loop in agg_get_obj_handle

Signed-off-by: Liang Zhen <[email protected]>
  • Loading branch information
gnailzenh authored Feb 3, 2021
1 parent 988db9c commit ae487bd
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 157 deletions.
6 changes: 6 additions & 0 deletions src/object/obj_ec.h
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,12 @@ int obj_ec_codec_init(void);
void obj_ec_codec_fini(void);
struct obj_ec_codec *obj_ec_codec_get(daos_oclass_id_t oc_id);

static inline struct obj_ec_codec *
obj_id2ec_codec(daos_obj_id_t id)
{
return obj_ec_codec_get(daos_obj_id2class(id));
}

/* cli_ec.c */
int obj_ec_req_reasb(daos_iod_t *iods, d_sg_list_t *sgls, daos_obj_id_t oid,
struct daos_oclass_attr *oca,
Expand Down
Loading

0 comments on commit ae487bd

Please sign in to comment.