Skip to content

Commit ccce713

Browse files
authored
In explain API not showing the total count to all users (opensearch-project#185)
1 parent 22d1f6c commit ccce713

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/transport/action/explain/TransportExplainAction.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ class TransportExplainAction @Inject constructor(
353353
override fun onFailure(e: Exception) {
354354
when (e is OpenSearchSecurityException) {
355355
true -> {
356+
totalManagedIndices -= 1
356357
if (current < indexNames.count() - 1) {
357358
// do nothing - skip the index and go to next one
358359
filter(current + 1, filteredIndices, filteredMetadata, filteredPolicies, enabledStatus)

0 commit comments

Comments
 (0)