diff options
author | Corey Hulen <corey@hulen.com> | 2017-02-20 13:40:32 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-02-20 13:40:32 -0500 |
commit | 274b9b6032572dd33b28815a9c13bb18a02becbe (patch) | |
tree | 1fd47c65c854117d698d92b5cef701b59d4f9ebc /app/file.go | |
parent | dd4d8440eac2e4b64bfb6b449cc0668b78ecba50 (diff) | |
download | chat-274b9b6032572dd33b28815a9c13bb18a02becbe.tar.gz chat-274b9b6032572dd33b28815a9c13bb18a02becbe.tar.bz2 chat-274b9b6032572dd33b28815a9c13bb18a02becbe.zip |
Fixing file info caching issue with Aurora for master (#5477)
Diffstat (limited to 'app/file.go')
-rw-r--r-- | app/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/file.go b/app/file.go index 2ac3c398a..b678475c9 100644 --- a/app/file.go +++ b/app/file.go @@ -319,7 +319,7 @@ func MigrateFilenamesToFileInfos(post *model.Post) []*model.FileInfo { return []*model.FileInfo{} } else if newPost := result.Data.(*model.PostList).Posts[post.Id]; len(newPost.Filenames) != len(post.Filenames) { // Another thread has already created FileInfos for this post, so just return those - if result := <-Srv.Store.FileInfo().GetForPost(post.Id, false); result.Err != nil { + if result := <-Srv.Store.FileInfo().GetForPost(post.Id, true, false); result.Err != nil { l4g.Error(utils.T("api.file.migrate_filenames_to_file_infos.get_post_file_infos_again.app_error"), post.Id, result.Err) return []*model.FileInfo{} } else { |