[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tm-cvs-commit] dmcknight org.eclipse.tm.rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/internal/core/filters SystemFilterPoolReference.java

Update of /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/internal/core/filters
In directory dev1:/tmp/cvs-serv11951/src/org/eclipse/rse/internal/core/filters

Modified Files:
      Tag: R3_2_maintenance
	SystemFilterPoolReference.java 
Log Message:
[358999] Deleting multiple connections takes long time

Index: SystemFilterPoolReference.java
===================================================================
RCS file: /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/internal/core/filters/SystemFilterPoolReference.java,v
retrieving revision 1.9
retrieving revision 1.9.4.1
diff -C2 -d -r1.9 -r1.9.4.1
*** SystemFilterPoolReference.java	7 Apr 2008 12:48:45 -0000	1.9
--- SystemFilterPoolReference.java	4 Oct 2011 15:50:19 -0000	1.9.4.1
***************
*** 1,4 ****
  /*******************************************************************************
!  * Copyright (c) 2002, 2008 IBM Corporation and others.
   * All rights reserved. This program and the accompanying materials
   * are made available under the terms of the Eclipse Public License v1.0
--- 1,4 ----
  /*******************************************************************************
!  * Copyright (c) 2002, 2011 IBM Corporation and others.
   * All rights reserved. This program and the accompanying materials
   * are made available under the terms of the Eclipse Public License v1.0
***************
*** 19,22 ****
--- 19,23 ----
   * David Dykstal (IBM) - [192122] extended search to look for filter pools in
   *   profile during getReferencedFilterPool() rather than returning broken reference
+  * David McKnight (IBM) - [358999] Deleting multiple connections takes long time
   *******************************************************************************/
  
***************
*** 196,206 ****
  				}
  			}
  		}
! 		if (filterPool != null) {
! 			setReferenceToFilterPool(filterPool);
! 			setReferenceBroken(false);
! 		} else {
! 			setReferenceBroken(true);
! 		}
  		return filterPool;
  	}
--- 197,210 ----
  				}
  			}
+ 			
+ 			// bug 358999 - this was originally outside of the first if but then it created tons of unnecessary references
+ 			if (filterPool != null) {
+ 				setReferenceToFilterPool(filterPool);
+ 				setReferenceBroken(false);
+ 			} else {
+ 				setReferenceBroken(true);
+ 			}
  		}
! 
  		return filterPool;
  	}