Fixing file info caching issue with Aurora for master (#5477)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
dd4d8440ea
Коммит
274b9b6032
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user