]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/ops_executor: apply delta stats for pure read ops 49955/head
authorXuehan Xu <xxhdx1985126@gmail.com>
Wed, 1 Feb 2023 09:58:12 +0000 (09:58 +0000)
committerXuehan Xu <xxhdx1985126@gmail.com>
Thu, 2 Feb 2023 01:58:18 +0000 (01:58 +0000)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/osd/ops_executer.h

index 3e856e8506306a0f0919d481beadd181ccaa335e..3167b142649b93dd7e8fbe6a85a6f27611dfcfab 100644 (file)
@@ -474,7 +474,6 @@ OpsExecuter::flush_changes_n_do_ops_effects(
     }
     auto log_entries = prepare_transaction(ops);
     flush_clone_metadata(log_entries);
-    apply_stats();
     auto [submitted, all_completed] = std::forward<MutFunc>(mut_func)(std::move(txn),
                                                     std::move(obc),
                                                     std::move(*osd_op_params),
@@ -483,6 +482,8 @@ OpsExecuter::flush_changes_n_do_ops_effects(
        std::move(submitted),
        osd_op_ierrorator::future<>(std::move(all_completed)));
   }
+  apply_stats();
+
   if (__builtin_expect(op_effects.empty(), true)) {
     return maybe_mutated;
   } else {