Skip to content

Commit

Permalink
gds/ds21: update the pointer of seg_hdr when segment re-attached
Browse files Browse the repository at this point in the history
When re-attaching the lock-segment, the `seg_hdr` pointer was not
updated, which caused to reference on incorrect data and damage.

Signed-off-by: Boris Karasev <karasev.b@gmail.com>
  • Loading branch information
karasevb authored and artpol84 committed Mar 21, 2019
1 parent 280802c commit ef2575f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mca/gds/ds21/gds_ds21_lock_pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ pmix_status_t pmix_gds_ds21_lock_init(pmix_common_dstor_lock_ctx_t *ctx, const c
rc = PMIX_ERR_NOT_FOUND;
goto error;
}
seg_hdr = (segment_hdr_t*)lock_item->seg_desc->seg_info.seg_base_addr;
}

lock_item->num_locks = seg_hdr->num_locks;
Expand Down

0 comments on commit ef2575f

Please sign in to comment.