Fixes #1801 Reuse Cassandra session object for create creds (#1802)

This commit is contained in:
navinanandaraj 2016-08-28 17:32:41 -04:00 committed by Jeff Mitchell
parent 74f1b3981c
commit 8612b6139e

View file

@ -83,7 +83,12 @@ func (b *backend) DB(s logical.Storage) (*gocql.Session, error) {
return nil, err
}
return createSession(config, s)
session, err := createSession(config, s)
// Store the session in backend for reuse
b.session = session
return session, err
}
// ResetDB forces a connection next time DB() is called.