We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bfeff8 commit fa711f9Copy full SHA for fa711f9
1 file changed
pkg/util/execdetails/tiflash_stats.go
@@ -718,6 +718,9 @@ func (networkTraffic *TiFlashNetworkTrafficSummary) mergeExecSummary(summary *ti
718
// GetInterZoneTrafficBytes returns the inter zone network traffic bytes involved
719
// between tiflash instances.
720
func (networkTraffic *TiFlashNetworkTrafficSummary) GetInterZoneTrafficBytes() uint64 {
721
+ if networkTraffic == nil {
722
+ return 0
723
+ }
724
// NOTE: we only count the inter zone sent bytes here because tiflash count the traffic bytes
725
// of all sub request. For each sub request, both side with count the send and recv traffic.
726
// So here, we only use the send bytes as the overall traffic to avoid count the traffic twice.
0 commit comments