PLT-6355: Use separate Read Replicas for Search. (#6216)

Этот коммит содержится в:
George Goldberg
2017-05-01 05:19:58 +01:00
коммит произвёл Christopher Speller
родитель 5ab7726c1e
Коммит 597641545d
7 изменённых файлов: 76 добавлений и 30 удалений

Просмотреть файл

@@ -1065,7 +1065,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
list := model.NewPostList()
_, err := s.GetReplica().Select(&posts, searchQuery, queryParams)
_, err := s.GetSearchReplica().Select(&posts, searchQuery, queryParams)
if err != nil {
l4g.Warn(utils.T("store.sql_post.search.warn"), err.Error())
// Don't return the error to the caller as it is of no use to the user. Instead return an empty set of search results.