func getRWSign(group string) *go_lib.RWSign { if len(group) == 0 { return nil } rwSign := rwSignMap[group] if rwSign == nil { rwSign = go_lib.NewRWSign() rwSignMap[group] = rwSign } return rwSign }
func (self *SimpleHashRing) getChangeSign() *go_lib.RWSign { if self.changeSign == nil { self.changeSign = go_lib.NewRWSign() } return self.changeSign }