Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dliappis committed Aug 8, 2022
1 parent 45f598b commit e482d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esrally/driver/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2051,12 +2051,12 @@ async def __call__(self, es, params):
api = es.snapshot.get
request_args = {"repository": repository, "snapshot": "_current", "verbose": False}

# significantly reduce response size when lots of snapshots have been taken
# only available since ES 8.3.0 (https://github.com/elastic/elasticsearch/pull/86269)
if (es_version.major, es_version.minor) >= (8, 3):
request_params, headers = self._transport_request_params(params)
headers["Content-Type"] = "application/json"

# significantly reduce response size when lots of snapshots have been taken
# https://github.com/elastic/elasticsearch/pull/86269
request_params["index_names"] = "false"
request_params["verbose"] = "false"

Expand Down

0 comments on commit e482d72

Please sign in to comment.