Skip to content

Commit 5b0a9f7

Browse files
committed
#2201: baselb: abort when not migratable
1 parent f6b8769 commit 5b0a9f7

File tree

1 file changed

+3
-6
lines changed
  • src/vt/vrt/collection/balance/baselb

1 file changed

+3
-6
lines changed

src/vt/vrt/collection/balance/baselb/baselb.cc

+3-6
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,9 @@ std::shared_ptr<const balance::Reassignment> BaseLB::normalizeReassignments() {
143143
auto const new_node = std::get<1>(transfer);
144144
auto const current_node = obj_id.curr_node;
145145

146-
if (not obj_id.isMigratable()) {
147-
vt_debug_print(
148-
verbose, lb, "BaseLB::normalizeReassignments(): obj not migratable\n"
149-
);
150-
continue;
151-
}
146+
vtAbortIf(
147+
not obj_id.isMigratable(), "Transfering object that is not migratable"
148+
);
152149
if (current_node == new_node) {
153150
vt_debug_print(
154151
verbose, lb, "BaseLB::normalizeReassignments(): self migration\n"

0 commit comments

Comments
 (0)