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
}
Example #2
0
func (self *SimpleHashRing) getChangeSign() *go_lib.RWSign {
	if self.changeSign == nil {
		self.changeSign = go_lib.NewRWSign()
	}
	return self.changeSign
}