replace strings for store prefix (#1465)

Co-authored-by: ben-toogood <bentoogood@gmail.com>
This commit is contained in:
Asim Aslam 2020-04-01 20:19:21 +01:00 committed by GitHub
parent cd3d704aa5
commit e1bc0f6288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,6 +315,7 @@ func (s *sqlStore) configure() error {
return errors.New("error compiling regex for namespace") return errors.New("error compiling regex for namespace")
} }
namespace = reg.ReplaceAllString(namespace, "_") namespace = reg.ReplaceAllString(namespace, "_")
prefix = reg.ReplaceAllString(prefix, "_")
source := s.options.Nodes[0] source := s.options.Nodes[0]
// check if it is a standard connection string eg: host=%s port=%d user=%s password=%s dbname=%s sslmode=disable // check if it is a standard connection string eg: host=%s port=%d user=%s password=%s dbname=%s sslmode=disable