MCPcopy
hub / github.com/NVIDIA/aistore / react

Method react

dsort/manager.go:780–795  ·  view source on GitHub ↗
(reaction, msg string)

Source from the content-addressed store, hash-verified

778}
779
780func (m *Manager) react(reaction, msg string) error {
781 switch reaction {
782 case cmn.IgnoreReaction:
783 return nil
784 case cmn.WarnReaction:
785 m.Metrics.lock()
786 m.Metrics.Warnings = append(m.Metrics.Warnings, msg)
787 m.Metrics.unlock()
788 return nil
789 case cmn.AbortReaction:
790 return fmt.Errorf("%s", msg) // error will be reported on abort
791 default:
792 cos.AssertMsg(false, reaction)
793 return nil
794 }
795}
796
797func (bsi *buildingShardInfo) Unpack(unpacker *cos.ByteUnpack) error {
798 var err error

Callers 3

extractShardMethod · 0.95
setExtractCreatorMethod · 0.95

Calls 3

AssertMsgFunction · 0.92
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected