From 750ce0152cb1b093da549564a16ea15f97df0ce7 Mon Sep 17 00:00:00 2001 From: Josh Hursey Date: Wed, 23 Apr 2008 13:01:23 +0000 Subject: [PATCH] After a bit of testing this morning it seems that the tree component is able to work correctly with the checkpoint/restart functionality. So enable this component when C/R is enabled. This commit was SVN r18246. --- orte/mca/routed/tree/routed_tree.c | 8 ++++++-- orte/mca/routed/tree/routed_tree_component.c | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/orte/mca/routed/tree/routed_tree.c b/orte/mca/routed/tree/routed_tree.c index 8b873c9f7f..3e32a2fe2f 100644 --- a/orte/mca/routed/tree/routed_tree.c +++ b/orte/mca/routed/tree/routed_tree.c @@ -82,7 +82,9 @@ static int init(void) /* setup the global condition and lock */ OBJ_CONSTRUCT(&cond, opal_condition_t); OBJ_CONSTRUCT(&lock, opal_mutex_t); - + + lifeline = NULL; + return ORTE_SUCCESS; } @@ -128,7 +130,9 @@ static int finalize(void) /* destruct the global condition and lock */ OBJ_DESTRUCT(&cond); OBJ_DESTRUCT(&lock); - + + lifeline = NULL; + return ORTE_SUCCESS; } diff --git a/orte/mca/routed/tree/routed_tree_component.c b/orte/mca/routed/tree/routed_tree_component.c index c54ddae284..0540a5c090 100644 --- a/orte/mca/routed/tree/routed_tree_component.c +++ b/orte/mca/routed/tree/routed_tree_component.c @@ -48,7 +48,8 @@ orte_routed_component_t mca_routed_tree_component = { /* Next the MCA v1.0.0 component meta data */ { - MCA_BASE_METADATA_PARAM_NONE + /* This component can be checkpointed */ + MCA_BASE_METADATA_PARAM_CHECKPOINT }, routed_tree_init };