summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2014-09-04 14:14:01 -0400
committerVijay Bellur <vbellur@redhat.com>2014-09-12 04:23:26 -0700
commit9ace73a2dd1db0359430a107e9ebc2a0dcb835d2 (patch)
tree63f755a457d05a0a45d92c8ee6e7a14f25442202
parent449c046bf6b039b2ba86be34677056686f7bc5ce (diff)
cluster/dht: invoke callback when there are no locks to be unlocked.
Change-Id: I375cb68f1075c2d58cf9d09ed6bd5e2746e1637d BUG: 1138395 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on-master: 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> Reviewed-on: http://review.gluster.org/8611
-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;
}