Fix `UploadRecovery` from S3 fails with bucket name containing sub-folder.

This commit is contained in:
Guo Xiang Tan 2018-10-01 19:03:02 +08:00
parent d8fa7fbbab
commit ac52d8d3c7
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class UploadRecovery
if key =~ /#{sha1}/
tombstone_prefix = FileStore::S3Store::TOMBSTONE_PREFIX
if key.starts_with?(tombstone_prefix)
if key.include?(tombstone_prefix)
old_key = key
key = key.sub(tombstone_prefix, "")