summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2014-08-27 11:27:33 +0530
committerVijay Bellur <vbellur@redhat.com>2014-08-28 02:48:35 -0700
commita1b02e53a5fdf706290ce143fbbf8a09845105d0 (patch)
treef60c3ffb09afda5f7d49bd93b6bc238e1c6d9671 /xlators/cluster
parentdc844c545caa7f2cf08fd71caa5051348a5f3c78 (diff)
cluster/dht: invoke callback when there are no locks to be unlocked.
Change-Id: I375cb68f1075c2d58cf9d09ed6bd5e2746e1637d BUG: 1130888 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on: http://review.gluster.org/8549 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: N Balachandran <nbalacha@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-helper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c
index 2655f716d9a..b9715c6d1b6 100644
--- a/xlators/cluster/dht/src/dht-helper.c
+++ b/xlators/cluster/dht/src/dht-helper.c
@@ -1568,6 +1568,10 @@ done:
if (lock_frame)
dht_lock_stack_destroy (lock_frame);
+ /* no locks acquired, invoke inodelk_cbk */
+ if (ret == 0)
+ inodelk_cbk (frame, NULL, frame->this, 0, 0, NULL);
+
return ret;
}