mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 07:41:02 +00:00
added nil check to GetProcess
This commit is contained in:
parent
8b2398b8e5
commit
02a0ee73cd
1 changed files with 8 additions and 5 deletions
13
core/etcd.go
13
core/etcd.go
|
|
@ -124,11 +124,14 @@ func (self *TopologyMapper) MakeFragments(db string, slice_int int) error {
|
|||
for _, dbs := range self.service.Cluster.GetDatabases() {
|
||||
for _, fsi := range dbs.GetFrameSliceIntersects() {
|
||||
fragment := fsi.GetFragment()
|
||||
process := fragment.GetProcess().Id().String()
|
||||
if len(process) > 1 {
|
||||
i := m[process]
|
||||
i++
|
||||
m[process] = i
|
||||
p := fragment.GetProcess()
|
||||
if p != nil {
|
||||
process := p.Id().String()
|
||||
if len(process) > 1 {
|
||||
i := m[process]
|
||||
i++
|
||||
m[process] = i
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue