mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 15:40:03 +08:00
broker: add profiling
This commit is contained in:
@@ -16,6 +16,10 @@ import (
|
||||
|
||||
func (broker *MessageBroker) appendToFile(targetFile string, topicConfig *messaging_pb.TopicConfiguration, data []byte) error {
|
||||
|
||||
if topicConfig.IsTransient {
|
||||
return nil
|
||||
}
|
||||
|
||||
assignResult, uploadResult, err2 := broker.assignAndUpload(topicConfig, data)
|
||||
if err2 != nil {
|
||||
return err2
|
||||
|
@@ -23,7 +23,7 @@ func (broker *MessageBroker) Publish(stream messaging_pb.SeaweedMessaging_Publis
|
||||
|
||||
// TODO look it up
|
||||
topicConfig := &messaging_pb.TopicConfiguration{
|
||||
|
||||
IsTransient: true,
|
||||
}
|
||||
|
||||
// send init response
|
||||
|
Reference in New Issue
Block a user