aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-07-03 00:29:25 -0700
committerchrislu <chris.lu@gmail.com>2022-07-03 00:29:25 -0700
commit9f20d3ebd1a756d27169bc0299401a0c76f787ff (patch)
tree5858f12da6157c02cef7edbefec81baff552085e /weed/command
parent0f5d7ed242657b15ca35a6e46304068cf89bca17 (diff)
downloadseaweedfs-9f20d3ebd1a756d27169bc0299401a0c76f787ff.tar.xz
seaweedfs-9f20d3ebd1a756d27169bc0299401a0c76f787ff.zip
add dc and rack
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/benchmark.go2
-rw-r--r--weed/command/mq_broker.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go
index 9f18cc5b9..d600e32b5 100644
--- a/weed/command/benchmark.go
+++ b/weed/command/benchmark.go
@@ -129,7 +129,7 @@ func runBenchmark(cmd *Command, args []string) bool {
defer pprof.StopCPUProfile()
}
- b.masterClient = wdclient.NewMasterClient(b.grpcDialOption, "", "client", "", "", pb.ServerAddresses(*b.masters).ToAddressMap())
+ b.masterClient = wdclient.NewMasterClient(b.grpcDialOption, "", "client", "", "", "", pb.ServerAddresses(*b.masters).ToAddressMap())
go b.masterClient.KeepConnectedToMaster()
b.masterClient.WaitUntilConnected()
diff --git a/weed/command/mq_broker.go b/weed/command/mq_broker.go
index a80e3da70..65f49e673 100644
--- a/weed/command/mq_broker.go
+++ b/weed/command/mq_broker.go
@@ -96,6 +96,8 @@ func (mqBrokerOpt *MessageQueueBrokerOptions) startQueueServer() bool {
qs, err := broker.NewMessageBroker(&broker.MessageQueueBrokerOption{
Masters: pb.ServerAddresses(*mqBrokerOpt.masters).ToAddressMap(),
FilerGroup: *mqBrokerOpt.filerGroup,
+ DataCenter: *mqBrokerOpt.dataCenter,
+ Rack: *mqBrokerOpt.rack,
Filers: []pb.ServerAddress{filerAddress},
DefaultReplication: "",
MaxMB: 0,