Skip to content

Commit

Permalink
DAOS-15276 object: log refine
Browse files Browse the repository at this point in the history
Features: dfs dfuse datamover hdf5

Required-githooks: true

Signed-off-by: Xuezhao Liu <xuezhao.liu@intel.com>
  • Loading branch information
liuxuezhao committed May 8, 2024
1 parent 807f374 commit a99c94f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/object/cli_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,11 @@ obj_iod_sgl_valid(daos_obj_id_t oid, unsigned int nr, daos_iod_t *iods,
for (j = 0; j < sg->sg_nr; j++) {
iov = sg->sg_iovs + j;
if (iov == NULL || (iov->iov_buf_len > 0 && iov->iov_buf == NULL)) {
D_ERROR("Bad iov\n");
if (iov == NULL)
D_ERROR("Bad iov - j %d, NULL iov\n", j);
else
D_ERROR("Bad iov - j %d, NULL iov_buf, "
"bul_len %zu\n", j, iov->iov_buf_len);
return -DER_INVAL;
}
}
Expand Down

0 comments on commit a99c94f

Please sign in to comment.