Commit c84929e9 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

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

parent 1a363c84
Pipeline #83943 passed with stages
in 29 minutes and 24 seconds
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment