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:
parent
128fdfa8a3
commit
a83e304382
3 changed files with 12 additions and 6 deletions
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue