From aed3718d6a0c1f9f90dfcfd145b04fd69c83ac76 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Thu, 30 Jan 2014 14:18:36 -0600 Subject: [PATCH] config file adjustments --- index/fragment_container.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index/fragment_container.go b/index/fragment_container.go index f7fc0777c..d6701b3be 100644 --- a/index/fragment_container.go +++ b/index/fragment_container.go @@ -196,24 +196,24 @@ type Fragment struct { } func getStorage(db string, slice int, frame string) Storage { - storage_method := config.GetInt("storage") + storage_method := config.GetString("storage_backend") switch storage_method { default: return NewMemoryStorage() - case 1: + case "localfile": storage_path := config.GetString("kv_base_path") if storage_path == "" { storage_path = "/tmp/pilosa" } s, _ := NewKVStorage(storage_path, slice, db) return s - case 2: - host := config.GetString("cass_host") + case "cassandra": + host := config.GetString("cassandra_host") if host == "" { host = "localhost" } - keyspace := config.GetString("cass_keyspace") + keyspace := config.GetString("cassandra_keyspace") if keyspace == "" { keyspace = "hotbox" }