Skip to content

Commit

Permalink
Fix called function name in Authenticate
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Jun 21, 2022
1 parent 3a40f98 commit 56eb5c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file.

## [2.21.1] - 2022-06-21

This s hotfix release. It is recommended to upgrade your client if you use authentication.

* **Bug Fixes**
* Fix called function name in Authenticate.

## [2.21.0] - 2022-06-07

* **New Features**
Expand Down
5 changes: 3 additions & 2 deletions lib/aerospike/connection/authenticate.rb
Expand Up @@ -33,7 +33,7 @@ def call(conn, user, hashed_pass)
end
module AuthenticateNew
class << self
INVALID_SESSION_ERR = [ResultCode::INVALID_CREDENTIAL,
INVALID_SESSION_ERR = [ResultCode::INVALID_CREDENTIAL,
ResultCode::EXPIRED_SESSION]

def call(conn, cluster)
Expand All @@ -48,7 +48,7 @@ def call(conn, cluster)
cluster.reset_session_info
if ae.is_a?(Exceptions::Aerospike)
if INVALID_SESSION_ERR.include?(ae.result_code)
command.authenticate(conn, cluster)
command.authenticate_new(conn, cluster)
return
end
end
Expand All @@ -65,3 +65,4 @@ def call(conn, cluster)
end
end
end

2 changes: 1 addition & 1 deletion lib/aerospike/version.rb
@@ -1,4 +1,4 @@
# encoding: utf-8
module Aerospike
VERSION = "2.21.0"
VERSION = "2.21.1"
end

0 comments on commit 56eb5c3

Please sign in to comment.