mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 19:37:51 +00:00
config file adjustments
This commit is contained in:
parent
81e17c4392
commit
aed3718d6a
1 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue