Skip to content

Commit

Permalink
iolog: fix disk stats issue
Browse files Browse the repository at this point in the history
In the iolog replay scenario, the disk util in the td structure is
not initialized, resulting in the disk stats not being correctly
updated.

Fixes: #1735

Signed-off-by: Yong Gang <yygcode@gmail.com>
  • Loading branch information
yygcode committed Mar 22, 2024
1 parent 40e5f1b commit c492cb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iolog.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ int init_iolog(struct thread_data *td)
if (ret)
td_verror(td, EINVAL, "failed initializing iolog");

init_disk_util(td);

return ret;
}

Expand Down

0 comments on commit c492cb1

Please sign in to comment.