diff options
| author | chrislu <chris.lu@gmail.com> | 2023-09-18 16:13:20 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-09-18 16:13:20 -0700 |
| commit | 0bb97709d41b1be4c74f01dcc65aac6d5f88bd16 (patch) | |
| tree | 9be51ec65888a0741f63912c9bc125d0278d3360 /weed/mq/balancer/allocate.go | |
| parent | 8cb42c39adbbe7f082009cf91eccb4d2dc527235 (diff) | |
| download | seaweedfs-0bb97709d41b1be4c74f01dcc65aac6d5f88bd16.tar.xz seaweedfs-0bb97709d41b1be4c74f01dcc65aac6d5f88bd16.zip | |
Revert "Merge branch 'master' into sub"
This reverts commit 4d414f54a224142f3f4d934f4af3b5dceb6fec6b, reversing
changes made to 482742514656e9b5a652acf7406740fbc55db13d.
Diffstat (limited to 'weed/mq/balancer/allocate.go')
| -rw-r--r-- | weed/mq/balancer/allocate.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/weed/mq/balancer/allocate.go b/weed/mq/balancer/allocate.go deleted file mode 100644 index d594c60fb..000000000 --- a/weed/mq/balancer/allocate.go +++ /dev/null @@ -1,20 +0,0 @@ -package balancer - -import ( - cmap "github.com/orcaman/concurrent-map/v2" - "github.com/seaweedfs/seaweedfs/weed/pb/mq_pb" -) - -func allocateTopicPartitions(brokers cmap.ConcurrentMap[string, *BrokerStats], partitionCount int) (assignments []*mq_pb.BrokerPartitionAssignment) { - return []*mq_pb.BrokerPartitionAssignment{ - { - LeaderBroker: "localhost:17777", - FollowerBrokers: []string{"localhost:17777"}, - Partition: &mq_pb.Partition{ - RingSize: MaxPartitionCount, - RangeStart: 0, - RangeStop: MaxPartitionCount, - }, - }, - } -} |
