Incorrect check of M0_ENF_META flag in oi_flags field of struct m0_op_idx
Analysis:
Actually M0_ENF_META flag is available in entity_flags. It is validated
with oi_flags. Need to modify M0_ENF_META flag validation.
Fix:
Modified M0_ENF_META flag validation for index creation.
@@ -581,7 +581,7 @@ static void dix_build(const struct m0_op_idx *oi,
m0_dix_ldesc_init(&out->dd_layout.u.dl_desc,
&(struct m0_ext) { .e_start = 0,
.e_end = IMASK_INF }, 1, HASH_FNC_CITY,
- (oi->oi_flags & M0_ENF_META) ?
+ (idx->in_entity.en_flags & M0_ENF_META) ?
&idx->in_attr.idx_pver :
&dix_inst(oi)->di_index_pver);
}
