Fixes: #9217
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
// ondisk?
if (repop->all_committed) {
- log_op_stats(repop->ctx);
+ if (!repop->log_op_stat) {
+ log_op_stats(repop->ctx);
+ repop->log_op_stat = true;
+ }
publish_stats_to_osd();
// send dup commits, in order
bool queue_snap_trimmer;
Context *on_applied;
+ bool log_op_stat;
RepGather(OpContext *c, ObjectContextRef pi, ceph_tid_t rt,
eversion_t lc) :
sent_disk(false),
pg_local_last_complete(lc),
queue_snap_trimmer(false),
- on_applied(NULL) { }
+ on_applied(NULL),
+ log_op_stat(false) { }
RepGather *get() {
nref++;