mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-18 22:34:19 -05: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
@ -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 New Issue
Block a user