HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() (Jan Hentschel)
This commit is contained in:
parent
910e885a75
commit
6d48eb06c9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue