Skip to content

Commit

Permalink
iolog: fix disk stats issue
Browse files Browse the repository at this point in the history
The disk util structure of the td does not initialized when
iolog replay, and the disk stats is the initial value.

Fixes: #1735

Signed-off-by: Yonggang <yygcode@gmail.com>
  • Loading branch information
yygcode committed Mar 22, 2024
1 parent 40e5f1b commit 611b07c
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 611b07c

Please sign in to comment.