Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed slow issue due to repeated authentication during ExecuteNonQuery

  • Loading branch information...
commit dcc948c5209c15451031978b82c0cac68d945963 1 parent b01cee2
ssteo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/CassandraSession.cs
View
2  src/CassandraSession.cs
@@ -111,7 +111,7 @@ internal CassandraClientWrapper GetClient(bool setKeyspace = true, bool? setCqlV
if (setCqlVersion.Value)
_connection.SetCqlVersion(builder.CqlVersion);
- if (setLogin && !String.IsNullOrWhiteSpace(builder.Username) && !String.IsNullOrWhiteSpace(builder.Password))
+ if (!IsAuthenticated && setLogin && !String.IsNullOrWhiteSpace(builder.Username) && !String.IsNullOrWhiteSpace(builder.Password))
Login(builder.Username, builder.Password);
return new CassandraClientWrapper(_connection.Client);
Please sign in to comment.
Something went wrong with that request. Please try again.