* ./hurricane/src/hurricane:

- Bug: In Instance::_postCreate, do not disable Go auto materialization if
        the instance is placed.
This commit is contained in:
Jean-Paul Chaput 2010-06-25 08:37:07 +00:00
parent 132ec33599
commit adaae1af9b
2 changed files with 7 additions and 4 deletions

View File

@ -61,7 +61,9 @@ void Go::_postCreate()
{
Inherit::_postCreate();
if (!autoMaterializationIsDisabled()) materialize(); // materialized after entire post creation
if (not autoMaterializationIsDisabled()) {
materialize();
} // materialized after entire post creation
}

View File

@ -378,9 +378,9 @@ void Instance::setPlacementStatus(const PlacementStatus& placementstatus)
if (placementstatus != _placementStatus) {
invalidate(true);
if (_placementStatus == PlacementStatus::UNPLACED)
if (_placementStatus == PlacementStatus::UNPLACED) {
materialize ();
else if ( placementstatus == PlacementStatus::UNPLACED )
} else if (placementstatus == PlacementStatus::UNPLACED)
unmaterialize ();
_placementStatus = placementstatus;
@ -457,6 +457,7 @@ void Instance::_postCreate()
}
bool autoMaterialization = not autoMaterializationIsDisabled();
if ( _placementStatus == PlacementStatus::UNPLACED )
disableAutoMaterialization();
Inherit::_postCreate();