diff --git a/builtin/logical/cassandra/backend.go b/builtin/logical/cassandra/backend.go index c59d93578..e3ac811b3 100644 --- a/builtin/logical/cassandra/backend.go +++ b/builtin/logical/cassandra/backend.go @@ -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.