Skip to content

Commit

Permalink
#708: lb: move migratable constructor (missed in rebase)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jul 15, 2020
1 parent 7aad546 commit 51a4208
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/vt/vrt/collection/types/migratable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@

namespace vt { namespace vrt { namespace collection {

Migratable::Migratable()
: stats_elm_id_(balance::ProcStats::getNextElm()),
temp_elm_id_(balance::ProcStats::getNextElm())
{ }

/*virtual*/ void Migratable::destroy() {
debug_print(
vrt_coll, node,
Expand Down
5 changes: 1 addition & 4 deletions src/vt/vrt/collection/types/migratable.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ namespace balance {

struct Migratable : MigrateHookBase {

Migratable()
: stats_elm_id_(balance::ProcStats::getNextElm()),
temp_elm_id_(balance::ProcStats::getNextElm())
{ }
Migratable();

/*
* The user or runtime system can invoke this method at any time (when a valid
Expand Down

0 comments on commit 51a4208

Please sign in to comment.