HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() (Jan Hentschel)

This commit is contained in:
tedyu 2017-01-06 09:08:55 -08:00
parent e8e40d8625
commit d0393bdf28
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ public class PoolMap<K, V> implements Map<K, V> {
@Override @Override
public R get() { public R get() {
if (super.size() < maxSize) { if (super.size() <= 0) {
return null; return null;
} }
nextResource %= super.size(); nextResource %= super.size();