-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) To insert the Instnace task into task queue, hash of service instance uuid is used. To identify the numer of task queues avaialble, .capacity() routine is used on vector, whose value mgiht be more than the size of the vector. If task is inserted into a vector position that is more than the size of vector, exception can occur. To avoid this, .size() routine is invoked. 2) While inserting the task into the map of (service instance, task), strict error check is made to ensure that we dont insert the same task again into the map. 3) While starting the task, if there is an error, task is removed from above map without unregistering the service instance, which might lead to wrong refcounting. To avaoid this, unregisterserviceinstane() is invoked which takes care of refcounting. Change-Id: I1608be4f47d3a981aa1f8b7c9f48e0e80d21fc33 partial-bug: #1462042
- Loading branch information
1 parent
5830525
commit 41dfe48
Showing
2 changed files
with
11 additions
and
8 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