Issue Details (XML | Word | Printable)

Key: LIBOMV-407
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Dirty McLean
Reporter: Dirty McLean
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
libopenmetaverse

GroupManager caching by requestID, possible memory leak

Created: 26/Oct/08 11:27 AM   Updated: 26/Oct/08 12:09 PM
Component/s: Groups
Affects Version/s: None
Fix Version/s: 0.6.0

Severity: Medium
Environment: All


 Description  « Hide
GroupManager is caching group roles and members by the request ID instead of by the groupID. As a result, the end user must maintain a dictionary of requestID's indexed by groupID. This is also a possible memory leak, with several duplicate group list cache's indexed by unique request ids.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dirty McLean added a comment - 26/Oct/08 12:09 PM
Fixed in r2310

GroupRolesCaches, GroupMembersCaches, and GroupRolesMembersCaches are now indexed by the group UUID instead of the RequestID in the request packet. This should prevent duplicate caches from existing for the same group under different request ids, as well as provide a more logical way to reference cached member/role info.