diff options
author | George Goldberg <george@gberg.me> | 2017-05-01 05:19:58 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-05-01 00:19:58 -0400 |
commit | 597641545d1be04a1ba6c0b2d35c75fc2cfc8737 (patch) | |
tree | 4a5789acdeaf3924bd279672f8308572b91a9062 /store/sql_post_store.go | |
parent | 5ab7726c1ec72678e505b87335eb011f97a09b3c (diff) | |
download | chat-597641545d1be04a1ba6c0b2d35c75fc2cfc8737.tar.gz chat-597641545d1be04a1ba6c0b2d35c75fc2cfc8737.tar.bz2 chat-597641545d1be04a1ba6c0b2d35c75fc2cfc8737.zip |
PLT-6355: Use separate Read Replicas for Search. (#6216)
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r-- | store/sql_post_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go index 9d852abff..b2211a180 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -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. |