Commit 01f90226 authored by Robert Ricci's avatar Robert Ricci

When using allow_overload, only allow it on pnodes that can handle

more than one vnode; not much point if a one-to-one mapping is all we
can do.
parent afb4d663
......@@ -70,7 +70,7 @@ inline bool pnode_is_match(tb_vnode *vn, tb_pnode *pn) {
if (tr->is_static) {
if ((tr->current_load + vn->typecount) > tr->max_load) {
// This would put us over its max load
if (allow_overload) {
if (allow_overload && (tr->max_load > 1)) {
// That's okay, we're allowing overload
matched = true;
} else {
......@@ -90,7 +90,7 @@ inline bool pnode_is_match(tb_vnode *vn, tb_pnode *pn) {
if ((pn->current_type_record->current_load + vn->typecount) >
pn->current_type_record->max_load) {
// This would put us over its max load
if (allow_overload) {
if (allow_overload && (tr->max_load > 1)) {
// That's okay, we're allowing overload
matched = true;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment