mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-19 11:24:54 +00:00
Currently, `executeIndexRequestOnPrimary` and `executeDeleteRequestOnPrimary` methods used to prepare and execute write operations, modifies the provided request, updating the version and versionType. This commit makes it the callers responsibility to update request version and versionType and avoids mutating the provided request in the execute methods.