mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
Merge pull request #2785 from athanatos/wip-9821
PG:: reset_interval_flush and in set_last_peering_reset Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
8a9b953b7c
@ -4568,7 +4568,10 @@ bool PG::old_peering_msg(epoch_t reply_epoch, epoch_t query_epoch)
|
||||
void PG::set_last_peering_reset()
|
||||
{
|
||||
dout(20) << "set_last_peering_reset " << get_osdmap()->get_epoch() << dendl;
|
||||
last_peering_reset = get_osdmap()->get_epoch();
|
||||
if (last_peering_reset != get_osdmap()->get_epoch()) {
|
||||
last_peering_reset = get_osdmap()->get_epoch();
|
||||
reset_interval_flush();
|
||||
}
|
||||
}
|
||||
|
||||
struct FlushState {
|
||||
@ -4622,7 +4625,6 @@ void PG::start_peering_interval(
|
||||
const OSDMapRef osdmap = get_osdmap();
|
||||
|
||||
set_last_peering_reset();
|
||||
reset_interval_flush();
|
||||
|
||||
vector<int> oldacting, oldup;
|
||||
int oldrole = get_role();
|
||||
|
Loading…
Reference in New Issue
Block a user