As double apply_stats() when writing, the write related metrics such as
the object number and space utilization are doubled. Therefore, just do once in
ops executing process.
Fixes: https://tracker.ceph.com/issues/61227
Signed-off-by: luo rixin <luorixin@huawei.com>
(cherry picked from commit
1dd18476f09130cd0eefaa7e9c35d476631709d2)
txn
).then_interruptible([mut_func=std::move(mut_func),
this](auto&& log_entries) mutable {
- apply_stats();
auto [submitted, all_completed] =
std::forward<MutFunc>(mut_func)(std::move(txn),
std::move(obc),