summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-05-05 15:59:11 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-05-05 17:36:41 +0530
commit42d5355a6221ea473372c891544e4cc7b265bbe9 (patch)
tree29b6dbb8cb48067c593169665d0eb06dede06353
parent7eb61fb44986fc834a19d9f38754f1be54d07e09 (diff)
libglusterfsclient: A Fix deadlock in ftruncate
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 6639356a709..d1cbbac3c2c 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -4759,7 +4759,7 @@ libgf_client_ftruncate (libglusterfs_client_ctx_t *ctx, fd_t *fd,
{
fdctx->offset = stub->args.ftruncate_cbk.buf.st_size;
}
- pthread_mutex_lock (&fdctx->lock);
+ pthread_mutex_unlock (&fdctx->lock);
out:
call_stub_destroy (stub);