matrix-org / synapse-s3-storage-provider

Synapse storage provider to fetch and store media in Amazon S3
Apache License 2.0
127 stars 34 forks source link

s3_media_upload does not find media that has never been accessed #45

Closed ShadowJonathan closed 4 years ago

ShadowJonathan commented 4 years ago

If the last_access_ts column in the postgres database is NULL, s3_media_upload update does not pick up on it, and ignores it. Is this by design? (as it could probably indeed cause a race condition between the update mechanism and the person who'd upload it)