]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/ops_executor: call OpsExecutor::apply_stats() before
authorXuehan Xu <xuxuehan@qianxin.com>
Sat, 9 Nov 2024 06:59:45 +0000 (14:59 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Tue, 12 Nov 2024 03:30:21 +0000 (11:30 +0800)
OpsExecutor::obc is moved out.

OpsExecutor::apply_stats() accesses OpsExecutor::obc indirectly

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/osd/ops_executer.h

index e770e825b32d0d9a54585a596884f27d1cd58e39..3c8b961d4b9a34262316cf6aca3737a0723439de 100644 (file)
@@ -504,6 +504,7 @@ OpsExecuter::flush_changes_n_do_ops_effects(
     ceph_assert(want_mutate);
   }
 
+  apply_stats();
   if (want_mutate) {
     auto log_entries = flush_clone_metadata(
       prepare_transaction(ops),
@@ -525,8 +526,6 @@ OpsExecuter::flush_changes_n_do_ops_effects(
     all_completed = std::move(_all_completed);
   }
 
-  apply_stats();
-
   if (op_effects.size()) [[unlikely]] {
     // need extra ref pg due to apply_stats() which can be executed after
     // informing snap mapper