Skip to content

Commit

Permalink
DAOS-7202 rebuild: check if rgt is NULL (#5431)
Browse files Browse the repository at this point in the history
Fix a typo in rebuild_task_ult, to check if rgt is
NULL before reset done.

Signed-off-by: Di Wang <di.wang@intel.com>
  • Loading branch information
wangdi authored Apr 15, 2021
1 parent 5bdfe15 commit 41a9950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rebuild/srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,8 @@ rebuild_task_ult(void *arg)
* rebuild sequence, which has to be done by failure
* sequence order.
*/
rgt->rgt_status.rs_done = 0;
if (rgt)
rgt->rgt_status.rs_done = 0;
ret = ds_rebuild_schedule(pool, task->dst_map_ver,
&task->dst_tgts,
task->dst_rebuild_op, 5);
Expand Down

0 comments on commit 41a9950

Please sign in to comment.