Skip to content

Commit

Permalink
keep the cluster/cluster comparison for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Feb 5, 2024
1 parent 2e0f24c commit 2335b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ def check_if_ended!
end

def check_matching_client!(client)
if @client != client
if @client.cluster != client.cluster
raise Mongo::Error::InvalidSession.new(MISMATCHED_CLUSTER_ERROR_MSG)
end
end
Expand Down

0 comments on commit 2335b4c

Please sign in to comment.