mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 02:00:05 +00:00
Brief comment on why we do some things on every call to persist_event and not others
This commit is contained in:
parent
f275ba49bb
commit
03d415a6a2
1 changed files with 6 additions and 0 deletions
|
@ -239,6 +239,12 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||
event.internal_metadata.get_dict()
|
||||
)
|
||||
|
||||
# If we have already persisted this event, we don't need to do any
|
||||
# more processing.
|
||||
# The processing above must be done on every call to persist event,
|
||||
# since they might not have happened on previous calls. For example,
|
||||
# if we are persisting an event that we had persisted as an outlier,
|
||||
# but is no longer one.
|
||||
if have_persisted:
|
||||
if not outlier:
|
||||
sql = (
|
||||
|
|
Loading…
Reference in a new issue