Skip to content

Commit

Permalink
FIx memory leak issue.
Browse files Browse the repository at this point in the history
New data was always being added to "tablesUpdatedInUTL" variable and never being cleared when SD smart cache was not enabled.
Issue: 106111

(cherry picked from commit 73f4204)
  • Loading branch information
iroqueta authored and tomas-sexenian committed Feb 7, 2024
1 parent 2341f68 commit f669654
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ public boolean isEnabled()

@Override
public void setUpdated(String table, int handle) {
Vector<String> tablesUpdatedInUTLHandle = getTablesUpdatedInUTL(handle);
if (isEnabled() && ! tablesUpdatedInUTLHandle.contains(table))
tablesUpdatedInUTLHandle.add(table);

if (isEnabled()) {
Vector<String> tablesUpdatedInUTLHandle = getTablesUpdatedInUTL(handle);
if (!tablesUpdatedInUTLHandle.contains(table))
tablesUpdatedInUTLHandle.add(table);
}
}

private Vector<String> getTablesUpdatedInUTL(Integer handle){
Expand Down

0 comments on commit f669654

Please sign in to comment.