mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
comment
This commit is contained in:
parent
c7e05e4e71
commit
23f334dd13
|
@ -8,7 +8,7 @@ import (
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BrokerConnectToBalancer receives connections from brokers and collects stats
|
// ConnectToBalancer receives connections from brokers and collects stats
|
||||||
func (broker *MessageQueueBroker) ConnectToBalancer(stream mq_pb.SeaweedMessaging_ConnectToBalancerServer) error {
|
func (broker *MessageQueueBroker) ConnectToBalancer(stream mq_pb.SeaweedMessaging_ConnectToBalancerServer) error {
|
||||||
if !broker.lockAsBalancer.IsLocked() {
|
if !broker.lockAsBalancer.IsLocked() {
|
||||||
return status.Errorf(codes.Unavailable, "not current broker balancer")
|
return status.Errorf(codes.Unavailable, "not current broker balancer")
|
||||||
|
|
|
@ -19,7 +19,7 @@ func NewLocalTopicManager() *LocalTopicManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddTopic adds a topic to the local topic manager
|
// AddTopicPartition adds a topic to the local topic manager
|
||||||
func (manager *LocalTopicManager) AddTopicPartition(topic Topic, localPartition *LocalPartition) {
|
func (manager *LocalTopicManager) AddTopicPartition(topic Topic, localPartition *LocalPartition) {
|
||||||
localTopic, ok := manager.topics.Get(topic.String())
|
localTopic, ok := manager.topics.Get(topic.String())
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in a new issue