Skip to content
Browse files

Fixed non-updating cf list in list_keyspace_cfs method.

  • Loading branch information...
1 parent d29863b commit a7facd2047ef793c5a3ff6c617b01ecf207e1237 @fmgoncalves committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cassandra/Simple.pm
View
3 lib/Cassandra/Simple.pm
@@ -93,7 +93,7 @@ sub _build_pool {
sub _build_ksdef {
my $self = shift;
-
+ print "CHECKPOINT\n";
my $cl = $self->pool->get();
my $result = eval { $cl->describe_keyspace( $self->keyspace ) };
@@ -961,6 +961,7 @@ sub create_column_family {
my $res = $cl->system_add_column_family($cfdef);
if ($@) { $self->pool->fail($cl) }
else { $self->pool->put($cl) }
+ $self->clear_ksdef();
return $res;
}

0 comments on commit a7facd2

Please sign in to comment.
Something went wrong with that request. Please try again.