summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@redhat.com>2015-12-14 16:25:22 -0500
committerJeff Darcy <jdarcy@redhat.com>2016-02-08 11:40:53 -0800
commitfac8038a9fa80e16b557d91b9e2fec271cfda5fa (patch)
tree71a3cd9aa8da5b45e7cd1df364f393a044ed5dcc /xlators/protocol
parentb28a1d8e54d70deca14efa49da1781e29ce8eb51 (diff)
NSR: Volgen Support
Allows the user to convert an afr-volume to a nsr-volume by using cluster.nsr option in the volume set command gluster volume set <volname> cluster.nsr <on/off> Change-Id: Ia1c5aa89d27535f7275d474cf312dc5efb8e222f BUG: 1158654 Signed-off-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-on: http://review.gluster.org/12943 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Avra Sengupta <asengupt@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/server/src/server-rpc-fops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xlators/protocol/server/src/server-rpc-fops.c b/xlators/protocol/server/src/server-rpc-fops.c
index 9a7d8eb71ed..239323382ea 100644
--- a/xlators/protocol/server/src/server-rpc-fops.c
+++ b/xlators/protocol/server/src/server-rpc-fops.c
@@ -1772,8 +1772,12 @@ server_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
goto out;
}
- gf_stat_from_iatt (&rsp.statpre, statpre);
- gf_stat_from_iatt (&rsp.statpost, statpost);
+ if (statpre) {
+ gf_stat_from_iatt (&rsp.statpre, statpre);
+ }
+ if (statpost) {
+ gf_stat_from_iatt (&rsp.statpost, statpost);
+ }
out:
rsp.op_ret = op_ret;