mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-15 17:35:41 +00:00
When performing an internal reindex, we add a setting marking the source as read-only. We also check that this index is not already read-only. This means that when we add the read-only setting, we expect that it is already not there. This commit adds an assertion before we increment the settings version validating that this is indeed the case.