Permalink
Browse files

Only set active keyspace one time

  • Loading branch information...
1 parent ca7add2 commit 66a91627b86f4b3b789088e5da126df35309a933 Jake Luciani committed Oct 12, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/Connections/Connection.cs
View
5 src/Connections/Connection.cs
@@ -168,9 +168,10 @@ public void SetKeyspace(string keyspace)
throw new CassandraConnectionException("A connection to Cassandra has not been opened.");
if (_activeKeyspace == null || !_activeKeyspace.Equals(keyspace))
+ {
Client.set_keyspace(keyspace);
-
- _activeKeyspace = keyspace;
+ _activeKeyspace = keyspace;
+ }
}
/// <summary>

0 comments on commit 66a9162

Please sign in to comment.