Commit a12a65c3 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Reza Naghibi

Only count exp_mailed events when actually posting

When posting to the expiry thread, we wrongly counted exp_mailed also if
the OC in question was already on the mail queue. This could cause a
discrepency between the exp_mailed and exp_received counters.
parent 3f048b83
......@@ -112,10 +112,10 @@ exp_mail_it(struct objcore *oc, uint8_t cmds)
else
VSTAILQ_INSERT_TAIL(&exphdl->inbox,
oc, exp_list);
VSC_C_main->exp_mailed++;
}
oc->exp_flags |= cmds | OC_EF_POSTED;
AN(oc->exp_flags & OC_EF_REFD);
VSC_C_main->exp_mailed++;
AZ(pthread_cond_signal(&exphdl->condvar));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment