From a3b0fe0deb5cf165ba1e15c715caead8b8257a2b Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 13 May 2026 01:15:43 +0300 Subject: [PATCH] Fix op stats not tracked for OP_WRITE_STABLE --- src/osd/osd_primary_subops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/osd_primary_subops.cpp b/src/osd/osd_primary_subops.cpp index e3314b44..6a303963 100644 --- a/src/osd/osd_primary_subops.cpp +++ b/src/osd/osd_primary_subops.cpp @@ -359,7 +359,7 @@ void osd_t::add_bs_subop_stats(osd_op_t *subop, bool recovery_related) uint64_t opcode = bs_op_to_osd_op[subop->bs_op->opcode]; timespec tv_end; clock_gettime(CLOCK_REALTIME, &tv_end); - uint64_t len = (opcode == OSD_OP_SEC_READ || opcode == OSD_OP_SEC_WRITE) + uint64_t len = (opcode == OSD_OP_SEC_READ || opcode == OSD_OP_SEC_WRITE || opcode == OSD_OP_SEC_WRITE_STABLE) ? subop->bs_op->len : 0; msgr.inc_op_stats(msgr.stats, opcode, subop->tv_begin, tv_end, len); if (recovery_related)