forked from portworx/kvdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PWX-28113: Fix ListMembers API and add a new RemoveMemberByID API. (p…
…ortworx#112) * PWX-28114: Fix ListMembers API and add a new RemoveMemberByID API. ListMembers API - The ListMembers API used to return a map[string]*MemberInfo. The key to this map was the name of a member. - However when there is unstarted etcd member, the name of the member is set to empty. - Changed the API to return a map[uint64]*MemberInfo, where the key is a unique ID which is always set (even for unstarted members). - Also added HasStarted and Name fields to MemberInfo for easy lookup. RemoveMemberByID API - Introduced a new API to remove members based on their IDs. UTs - Fixed existing UTs to handle the new API. - Added tests for RemoveMemberByID API. - Added more checks to existing UTs. Signed-off-by: Aditya Dani <[email protected]> * PWX-28113: fixup: review comments Signed-off-by: Aditya Dani <[email protected]> --------- Signed-off-by: Aditya Dani <[email protected]>
- Loading branch information
1 parent
2decd55
commit 5cc46fd
Showing
7 changed files
with
248 additions
and
74 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
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
Oops, something went wrong.