diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c4e980..b8087b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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** diff --git a/lib/aerospike/connection/authenticate.rb b/lib/aerospike/connection/authenticate.rb index 670aaf2..5a98490 100644 --- a/lib/aerospike/connection/authenticate.rb +++ b/lib/aerospike/connection/authenticate.rb @@ -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) @@ -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 @@ -65,3 +65,4 @@ def call(conn, cluster) end end end + diff --git a/lib/aerospike/version.rb b/lib/aerospike/version.rb index 72b1c4f..b91a4d2 100644 --- a/lib/aerospike/version.rb +++ b/lib/aerospike/version.rb @@ -1,4 +1,4 @@ # encoding: utf-8 module Aerospike - VERSION = "2.21.0" + VERSION = "2.21.1" end