Skip to content

Commit

Permalink
Don't send bulk structure, if empty (#18747) (#18951)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator authored Jun 4, 2020
1 parent fda17cb commit d91f759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/module/elasticsearch/index/data_xpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type indexStats struct {
IndexTimeInMillis int `json:"index_time_in_millis"`
ThrottleTimeInMillis int `json:"throttle_time_in_millis"`
} `json:"indexing"`
Bulk bulkStats `json:"bulk"`
Bulk *bulkStats `json:"bulk,omitempty"`
Merges struct {
TotalSizeInBytes int `json:"total_size_in_bytes"`
} `json:"merges"`
Expand Down

0 comments on commit d91f759

Please sign in to comment.