Skip to content

Commit

Permalink
Disabling KeyedResourcePool#close(K key)
Browse files Browse the repository at this point in the history
  • Loading branch information
afeinberg committed Feb 25, 2010
1 parent 3965870 commit ba0a25e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.properties
Expand Up @@ -33,4 +33,4 @@ tomcat.manager.password=tomcat
tomcat.context=/voldemort

## Release
curr.release=0.70.2
curr.release=0.70.3
14 changes: 1 addition & 13 deletions src/java/voldemort/utils/pool/KeyedResourcePool.java
Expand Up @@ -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
Expand Down

0 comments on commit ba0a25e

Please sign in to comment.