Skip to content
Snippets Groups Projects
Commit c84929e9 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[io/Stats] For AlarmFutures (TIMEOUT) expect them to return ETIME

parent 1a363c84
No related branches found
No related tags found
No related merge requests found
Pipeline #83943 passed
......@@ -2,6 +2,7 @@
// Copyright © 2020-2022 Florian Fischer, Florian Schmaus
#include "io/Stats.hpp"
#include <cerrno>
#include <cstdlib>
#include <initializer_list> // for initializer_list
#include <iomanip> // for operator<<, setfill, setw
......@@ -143,6 +144,9 @@ void Stats::record_completion(Operation op, int32_t res, ssize_t partial_complet
case Operation::WRITE:
case Operation::WRITEV:
break;
case Operation::TIMEOUT:
exp = ETIME;
break;
default:
exp = 0;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment