Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Disabling KeyedResourcePool#close(K key)

  • Loading branch information...
commit ba0a25e3231fdfbd379e09d730affdd1515ff0de 1 parent 3965870
@afeinberg afeinberg authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.