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:
parent
128fdfa8a3
commit
a83e304382
3 changed files with 12 additions and 6 deletions
|
@ -325,9 +325,11 @@ try
|
|||
};
|
||||
|
||||
if(item.polylog(data))
|
||||
{
|
||||
ret = true;
|
||||
else
|
||||
checkpoint.decommit();
|
||||
data.out->invalidate_checkpoints();
|
||||
}
|
||||
else checkpoint.decommit();
|
||||
|
||||
return true;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue