From 70f796742a5aa39ddda18ed357148425d239e4e7 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 26 Aug 2014 12:28:34 +0200 Subject: [PATCH] [mc] Better condition for switching privatized data segment in MC_restore_snapshot() --- src/mc/mc_checkpoint.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index a5b3e20db9..808de73e67 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -667,6 +667,8 @@ void MC_restore_snapshot(mc_snapshot_t snapshot) parent_snapshot ? parent_snapshot->privatization_regions[i] : NULL); } } + } + if(snapshot->privatization_index >= 0) { switch_data_segment(snapshot->privatization_index); } #endif -- 2.20.1