Brief comment on why we do some things on every call to persist_event and not others

pull/47/head
Erik Johnston 2015-02-04 10:40:59 +00:00
parent f275ba49bb
commit 03d415a6a2
1 changed files with 6 additions and 0 deletions

View File

@ -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 = (