mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 15:01:03 +00:00
Merge branch 'master' into fix-keys
This commit is contained in:
commit
118961b911
1 changed files with 6 additions and 1 deletions
|
|
@ -721,12 +721,17 @@ func (h *Holder) Open() error {
|
|||
h.txf.blueGreenOnIfRunningBlueGreen()
|
||||
|
||||
if h.cfg.LookupDBDSN != "" {
|
||||
h.Logger.Printf("connecting to lookup DB")
|
||||
h.Logger.Printf("connecting to lookup database")
|
||||
|
||||
db, err := sql.Open("postgres", h.cfg.LookupDBDSN)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "connecting to lookup database")
|
||||
}
|
||||
if err := db.Ping(); err != nil {
|
||||
return errors.Wrap(err, "pinging lookup database")
|
||||
}
|
||||
|
||||
h.Logger.Printf("connection to lookup database succeeded, connection stats: %+v", db.Stats())
|
||||
|
||||
h.lookupDB = db
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue