0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +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)) if(item.polylog(data))
{
ret = true; ret = true;
else data.out->invalidate_checkpoints();
checkpoint.decommit(); }
else checkpoint.decommit();
return true; return true;
}); });

View file

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

View file

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