Skip to content

Commit

Permalink
engines/http: use proper error value
Browse files Browse the repository at this point in the history
The engine sets -1 for some odd reason, where ->error fields are
supposed to be a positive value. Set it to EIO.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Dec 15, 2023
1 parent 5a13bb8 commit c77fe68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ static enum fio_q_status fio_http_queue(struct thread_data *td,
log_err("WARNING: Only DDIR_READ/DDIR_WRITE/DDIR_TRIM are supported!\n");

err:
io_u->error = -1;
io_u->error = EIO;
td_verror(td, io_u->error, "transfer");
out:
curl_slist_free_all(slist);
Expand Down

0 comments on commit c77fe68

Please sign in to comment.