0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/client/sync: Manually invalidate checkpoints on known polylog commitments.

This commit is contained in:
Jason Volk 2019-03-30 15:02:18 -07:00
parent 128fdfa8a3
commit a83e304382
3 changed files with 12 additions and 6 deletions

View file

@ -325,9 +325,11 @@ try
};
if(item.polylog(data))
{
ret = true;
else
checkpoint.decommit();
data.out->invalidate_checkpoints();
}
else checkpoint.decommit();
return true;
});

View file

@ -193,9 +193,11 @@ ircd::m::sync::_rooms_polylog_room(data &data,
};
if(item.polylog(data))
{
ret = true;
else
checkpoint.decommit();
data.out->invalidate_checkpoints();
}
else checkpoint.decommit();
return true;
});

View file

@ -77,9 +77,11 @@ ircd::m::sync::rooms_ephemeral_events_polylog(data &data)
};
if(item.polylog(data))
{
ret = true;
else
checkpoint.rollback();
data.out->invalidate_checkpoints();
}
else checkpoint.rollback();
return true;
});