MCPcopy
hub / github.com/CodisLabs/codis / UpdateSlotMapping

Method UpdateSlotMapping

pkg/models/store.go:158–160  ·  view source on GitHub ↗
(m *SlotMapping)

Source from the content-addressed store, hash-verified

156}
157
158func (s *Store) UpdateSlotMapping(m *SlotMapping) error {
159 return s.client.Update(s.SlotPath(m.Id), m.Encode())
160}
161
162func (s *Store) ListGroup() (map[int]*Group, error) {
163 paths, err := s.client.List(s.GroupDir(), false)

Callers 2

handleConfigRestoreMethod · 0.80

Calls 3

SlotPathMethod · 0.95
UpdateMethod · 0.65
EncodeMethod · 0.45

Tested by

no test coverage detected