Measure scrub statistics

This commit is contained in:
Vitaliy Filippov
2023-06-17 20:56:26 +03:00
parent 3ad16b9a1a
commit 32f2c4dd27
4 changed files with 7 additions and 2 deletions
+1
View File
@@ -87,6 +87,7 @@ void osd_t::finish_op(osd_op_t *cur_op, int retval)
cur_op->reply.hdr.retval = retval;
if (cur_op->peer_fd == -1)
{
msgr.measure_exec(cur_op);
// Copy lambda to be unaffected by `delete op`
std::function<void(osd_op_t*)>(cur_op->callback)(cur_op);
}