summaryrefslogtreecommitdiffstats
path: root/api/src/glfs-handleops.c
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2015-06-28 10:15:44 +0200
committerNiels de Vos <ndevos@redhat.com>2015-06-28 01:25:24 -0700
commitb147ebb158c9f516ae2d815aaf1cd270efd5ebcb (patch)
tree61c914790809afb4a040df09f319d28ef0cf9c33 /api/src/glfs-handleops.c
parent049c8eec304d9548fccb127ee8ce82f179bc41b0 (diff)
Revert "Upcall/gfapi: Return ENOTSUP when upcall feature is disabled"
This reverts commit b68f671b2b8a0aafef8f98145aee7044edaa907d from http://review.gluster.org/11196 . The change depends on modifications to the cluster xlators, but these are still partially under review. Dropping this change now, it causes regression tests to fail. Change-Id: If5ae4a519c9c6312cdb2e2a31acce4b1901f9442 BUG: 1231132 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/11452
Diffstat (limited to 'api/src/glfs-handleops.c')
-rw-r--r--api/src/glfs-handleops.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c
index 38d8ccba041..47f2139c140 100644
--- a/api/src/glfs-handleops.c
+++ b/api/src/glfs-handleops.c
@@ -1881,18 +1881,6 @@ pub_glfs_h_poll_upcall (struct glfs *fs, struct callback_arg *up_arg)
__GLFS_ENTRY_VALIDATE_FS (fs, err);
- /* check if upcalls are enabled */
- if (!fs->upcall_features) {
- errno = ENOTSUP;
- goto restore;
- }
-
- /* check if GF_UPCALL_CACHE_INVALIDATION is supported */
- if (!(fs->upcall_features & (1 << GF_UPCALL_CACHE_INVALIDATION))) {
- errno = ENOTSUP;
- goto restore;
- }
-
/* get the active volume */
subvol = glfs_active_subvol (fs);