Skip to content

Commit

Permalink
Remove an unnecessary synchronization primitive from keyedresourcepool.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjwylie committed Jan 15, 2013
1 parent 2768eef commit 1ac1b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/voldemort/utils/pool/KeyedResourcePool.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public void close() {
*
* @param key The key for the pool to reset.
*/
public synchronized void reset(K key) {
public void reset(K key) {
Pool<V> resourcePool = getResourcePoolForExistingKey(key);
List<V> list = resourcePool.close();
for(V value: list)
Expand Down

0 comments on commit 1ac1b32

Please sign in to comment.