summaryrefslogtreecommitdiffstats
path: root/api/src/glfs-handleops.c
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2017-05-03 18:39:14 +0530
committerNiels de Vos <ndevos@redhat.com>2017-05-05 13:56:33 +0000
commitfa10c8a3528b95dc575bfedd30bcd68cc2dff25b (patch)
tree4273881ad26a5ade8c0e1fdadb1245ad6042c956 /api/src/glfs-handleops.c
parentde80a9153e3b681d8b83aa6164c94e2829b9cf49 (diff)
gfapi: Fix few severe coverity issues
From https://download.gluster.org/pub/gluster/glusterfs/static-analysis/master/glusterfs-coverity/2017-05-03-6484558c/html/ fixes coverity#189, 248, 250, 488, 546 Change-Id: I7c4aa5bf6c367344602748dfd736de27f341cca2 BUG: 789278 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: https://review.gluster.org/17161 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'api/src/glfs-handleops.c')
-rw-r--r--api/src/glfs-handleops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c
index de0a6deb87f..dbffa9e26bf 100644
--- a/api/src/glfs-handleops.c
+++ b/api/src/glfs-handleops.c
@@ -2089,6 +2089,7 @@ pub_glfs_h_poll_upcall (struct glfs *fs, struct glfs_upcall **up_arg)
case GF_UPCALL_RECALL_LEASE:
gf_log ("glfs_h_poll_upcall", GF_LOG_DEBUG,
"UPCALL_RECALL_LEASE is not implemented yet");
+ /* fallthrough till we support leases */
case GF_UPCALL_EVENT_NULL:
/* no 'default:' label, to force handling all upcall events */
errno = ENOENT;