summaryrefslogtreecommitdiffstats
path: root/heal
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2015-04-29 13:03:52 +0530
committerNiels de Vos <ndevos@redhat.com>2015-05-08 15:37:54 -0700
commit1162bb36108ab8dba8303b86927a99835b791d79 (patch)
treed5a3261bfd0ed690ecd64a40124d8441e0d498af /heal
parent0950e6c29fc51ddcc5bb7e1e4187d54ff7c171d2 (diff)
libgfapi: Store and restore THIS in every API exposed by libgfapi
Storing and restoring THIS: When the APIs exposed by libgfapi are called by other xlators like snapview server etc. the THIS value is overwritten to contain the THIS of libgfapi(viz libgfapi master xlator). Hence using 'THIS' in any xlator after calling libgfapi API will lead to issues. One such issue was uncovered in snapview and the patch http://review.gluster.org/#/c/9469/ was sent to workaround this issue. Hence, storing and restoring THIS, at the entry and exit of every API exposed by libgfapi. Change-Id: I6f330dde25e7700fb26339d667a7ccd193ec6ba0 BUG: 1210934 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/9797 Reviewed-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-by: soumya k <skoduri@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'heal')
-rw-r--r--heal/src/glfs-heal.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
index 770a3c6883c..cbdb5930cc2 100644
--- a/heal/src/glfs-heal.c
+++ b/heal/src/glfs-heal.c
@@ -773,7 +773,6 @@ main (int argc, char **argv)
}
sleep (2);
- __glfs_entry_fs (fs);
top_subvol = glfs_active_subvol (fs);
if (!top_subvol) {
ret = -1;