mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
turned autocreate back on
This commit is contained in:
parent
21596dfa1d
commit
26b64288fc
2 changed files with 7 additions and 9 deletions
14
core/etcd.go
14
core/etcd.go
|
|
@ -105,15 +105,13 @@ func getLightestProcess(m map[string]int) (Pair, error) {
|
|||
}
|
||||
|
||||
func (self *TopologyMapper) MakeFragments(db string, slice_int int) error {
|
||||
/*
|
||||
frames_to_create := config.GetStringArrayDefault("supported_frames", []string{"b.n", "l.n", "t.t", "d"})
|
||||
for _, frame := range frames_to_create {
|
||||
err := self.AllocateFragment(db, frame, slice_int)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
frames_to_create := config.GetStringArrayDefault("supported_frames", []string{"b.n", "l.n", "t.t", "d"})
|
||||
for _, frame := range frames_to_create {
|
||||
err := self.AllocateFragment(db, frame, slice_int)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
*/
|
||||
}
|
||||
return nil
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -202,9 +202,9 @@ func (self *FragmentContainer) Clear(frag_id util.SUUID) (bool, error) {
|
|||
}
|
||||
|
||||
func (self *FragmentContainer) AddFragment(db string, frame string, slice int, id util.SUUID) {
|
||||
log.Println("ADD FRAGMENT", frame, db, slice, util.SUUID_to_Hex(id))
|
||||
_, ok := self.fragments[id]
|
||||
if !ok {
|
||||
log.Println("ADD FRAGMENT", frame, db, slice, util.SUUID_to_Hex(id))
|
||||
f := NewFragment(id, db, slice, frame)
|
||||
self.fragments[id] = f
|
||||
go f.ServeFragment()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue