-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PWX-35601 Add length check before accessing in round robin (#2399)
* Add length check before accessing in round robin This PR adds a few check before accessing the filteredNodes: 1. If the length is zero, we return empty string and false (isRemote) 2. Before accessing the array, we take a reminder of the currentIndex with the length of the array. JIRA: PWX-35601 Signed-off-by: dahuang <[email protected]>
- Loading branch information
1 parent
844d27c
commit 7d0e1f9
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters