summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-03-29 14:08:04 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-30 04:28:24 -0700
commitd1700d209431e19a2ecca43f644935533d705af1 (patch)
tree179952e1c0b9c09f4870e381201fc969d9472c25 /xlators
parent3ce486929518da2673b6cef5ef1047849f587729 (diff)
assign local to frame->local before checking for error conditions
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2617 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2617
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/marker/src/marker-quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index 8c4910a77..a4bac037e 100644
--- a/xlators/features/marker/src/marker-quota.c
+++ b/xlators/features/marker/src/marker-quota.c
@@ -192,6 +192,8 @@ update_size_xattr (call_frame_t *frame, void *cookie, xlator_t *this,
quota_local_t *local = NULL;
marker_conf_t *priv = NULL;
+ local = frame->local;
+
if (op_ret == -1)
goto err;
@@ -200,8 +202,6 @@ update_size_xattr (call_frame_t *frame, void *cookie, xlator_t *this,
if (!dict)
goto err;
- local = frame->local;
-
ret = dict_get_bin (dict, QUOTA_SIZE_KEY, (void **) &size);
if (!size)
goto err;