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

This commit is contained in:
tedyu 2017-01-06 09:07:02 -08:00
parent 910e885a75
commit 6d48eb06c9
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
public R get() {
if (super.size() < maxSize) {
if (super.size() <= 0) {
return null;
}
nextResource %= super.size();