(sentinel *models.Sentinel)
| 144 | } |
| 145 | |
| 146 | func (s *Topom) refillCacheSentinel(sentinel *models.Sentinel) (*models.Sentinel, error) { |
| 147 | if sentinel != nil { |
| 148 | return sentinel, nil |
| 149 | } |
| 150 | p, err := s.store.LoadSentinel(false) |
| 151 | if err != nil { |
| 152 | return nil, err |
| 153 | } |
| 154 | if p != nil { |
| 155 | return p, nil |
| 156 | } |
| 157 | return &models.Sentinel{}, nil |
| 158 | } |
| 159 | |
| 160 | func (s *Topom) storeUpdateSlotMapping(m *models.SlotMapping) error { |
| 161 | log.Warnf("update slot-[%d]:\n%s", m.Id, m.Encode()) |
no test coverage detected