Skip to content

Commit e1cfdbf

Browse files
committed
sstore/stage: fix parameter handling in sstore_stage_local_compress_waitpid_cb()
since 8f496b0 sstore_stage_local_compress_waitpid_cb is invoked with an orte_wait_tracker_t *, that must be used to reach the orte_sstore_stage_local_app_snapshot_info_t *. Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 9254336 commit e1cfdbf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

orte/mca/sstore/stage/sstore_stage_local.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
2-
* Copyright (c) 2010 The Trustees of Indiana University.
2+
* Copyright (c) 2010 The Trustees of Indiana University.
33
* All rights reserved.
44
* Copyright (c) 2004-2011 The University of Tennessee and The University
55
* of Tennessee Research Foundation. All rights
66
* reserved.
7+
* Copyright (c) 2017 Research Organization for Information Science
8+
* and Technology (RIST). All rights reserved.
79
* $COPYRIGHT$
810
*
911
* Additional copyrights may follow
@@ -1550,8 +1552,9 @@ static int start_compression(orte_sstore_stage_local_snapshot_info_t *handle_inf
15501552
static void sstore_stage_local_compress_waitpid_cb(orte_proc_t *proc, void* cbdata)
15511553
{
15521554
orte_sstore_stage_local_app_snapshot_info_t *app_info = NULL;
1555+
orte_wait_tracker_t *t2 = (orte_wait_tracker_t *)cbdata;
15531556

1554-
app_info = (orte_sstore_stage_local_app_snapshot_info_t*)cbdata;
1557+
app_info = (orte_sstore_stage_local_app_snapshot_info_t*)t2->cbdata;
15551558

15561559
OPAL_OUTPUT_VERBOSE((10, mca_sstore_stage_component.super.output_handle,
15571560
"sstore:stage:(local): waitpid(%6d) Compression finished for Process %s",
@@ -1560,6 +1563,7 @@ static void sstore_stage_local_compress_waitpid_cb(orte_proc_t *proc, void* cbda
15601563

15611564
app_info->compress_pid = 0;
15621565
OBJ_RELEASE(proc);
1566+
OBJ_RELEASE(t2);
15631567
}
15641568

15651569
static int wait_all_compressed(orte_sstore_stage_local_snapshot_info_t *handle_info)

0 commit comments

Comments
 (0)