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

Merge branch 'fix_bufferless_future_recording' into 'master'

[IO/Stats] make sure only Future's with a buffer have a completion expectation

See merge request !92
parents f7681b3e a5772f70
No related branches found
No related tags found
1 merge request!92[IO/Stats] make sure only Future's with a buffer have a completion expectation
Pipeline #57757 passed
......@@ -150,6 +150,19 @@ class Stats {
return;
}
// Make sure exp which is passed as future.len is only > 0 for Futures with a buffer
switch (op) {
case Operation::SEND:
case Operation::RECV:
case Operation::READ:
case Operation::WRITE:
case Operation::WRITEV:
break;
default:
exp = 0;
break;
}
// Full completion
if (!exp || (uint32_t)res == exp) {
operation_map[FullCompletion]++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment