aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreshujiushiwo <378013446@qq.com>2016-11-28 12:16:51 +0800
committerGitHub <noreply@github.com>2016-11-28 12:16:51 +0800
commit89ccb6be05a82631377ddbdbe117df51958bbbf1 (patch)
tree07c2b3d43790b457e22781af1b6046fec51e6429
parent5385bf9555f32adefe25457c025b2e895d94ac7c (diff)
downloadseaweedfs-89ccb6be05a82631377ddbdbe117df51958bbbf1.tar.xz
seaweedfs-89ccb6be05a82631377ddbdbe117df51958bbbf1.zip
Update cassandra_store.go
-rw-r--r--weed/filer/cassandra_store/cassandra_store.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/filer/cassandra_store/cassandra_store.go b/weed/filer/cassandra_store/cassandra_store.go
index e9e1d9222..3005fead9 100644
--- a/weed/filer/cassandra_store/cassandra_store.go
+++ b/weed/filer/cassandra_store/cassandra_store.go
@@ -34,8 +34,11 @@ func NewCassandraStore(keyspace string, hosts ...string) (c *CassandraStore, err
c = &CassandraStore{}
s := strings.Split(hosts, ",")
if len(s) == 1 {
+ fmt.Println("000")
c.cluster = gocql.NewCluster(hosts...)
} else if len(s) > 1 {
+ fmt.Println("111",s[0])
+ fmt.Println("222",s[1])
c.cluster = gocql.NewCluster(s[0], s[1])
}
c.cluster.Keyspace = keyspace