summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2012-03-08 14:13:56 +0530
committerAnand Avati <avati@redhat.com>2012-03-18 01:52:37 -0700
commitdfc481bf2dfe9a26d8c311de578ca82b347810d0 (patch)
tree63cb0e56276ce6108bdcddbe577ddb982b4b3382 /xlators/protocol/client/src/client.h
parent4d4a1e0801d1a7b2b3ec226309809c5fddd84319 (diff)
protocol/client: replace STACK_UNWIND_STRICT macro with CLIENT_STACK_UNWIND,
which does appropraite cleanup before unwinding. Signed-off-by: Raghavendra G <raghavendra@gluster.com> Change-Id: Ic49d6e21c5fc56e747afec35be2bebbbbd2a6583 BUG: 767359 Reviewed-on: http://review.gluster.com/2897 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/protocol/client/src/client.h')
-rw-r--r--xlators/protocol/client/src/client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h
index 050a9b014..e1647d9fa 100644
--- a/xlators/protocol/client/src/client.h
+++ b/xlators/protocol/client/src/client.h
@@ -60,6 +60,14 @@
} \
} while (0);
+#define CLIENT_STACK_UNWIND(op, frame, params ...) do { \
+ clnt_local_t *__local = frame->local; \
+ frame->local = NULL; \
+ STACK_UNWIND_STRICT (op, frame, params); \
+ client_local_wipe (__local); \
+ } while (0)
+
+
struct clnt_options {
char *remote_subvolume;
int ping_timeout;