Permalink
Browse files

Disabling KeyedResourcePool#close(K key)

  • Loading branch information...
1 parent 3965870 commit ba0a25e3231fdfbd379e09d730affdd1515ff0de @afeinberg afeinberg committed Feb 25, 2010
Showing with 2 additions and 14 deletions.
  1. +1 −1 build.properties
  2. +1 −13 src/java/voldemort/utils/pool/KeyedResourcePool.java
View
2 build.properties
@@ -33,4 +33,4 @@ tomcat.manager.password=tomcat
tomcat.context=/voldemort
## Release
-curr.release=0.70.2
+curr.release=0.70.3
View
14 src/java/voldemort/utils/pool/KeyedResourcePool.java
@@ -228,19 +228,7 @@ public void close() {
}
}
- public void close(K key) {
- Pool<V> pool = resourcesMap.get(key);
-
- if(pool == null)
- throw new IllegalArgumentException("Invalid key '" + key
- + "': no resource pool exists for that key.");
-
- // destroy each resource in the queue
- for(V value = pool.nonBlockingGet(); value != null; value = pool.nonBlockingGet())
- destroyResource(key, pool, value);
-
- resourcesMap.remove(key);
- }
+ public void close(K key) { }
/**
* Return the total number of resources for the given key whether they are

0 comments on commit ba0a25e

Please sign in to comment.