diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-05-05 15:59:11 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-05-05 17:36:41 +0530 |
commit | 42d5355a6221ea473372c891544e4cc7b265bbe9 (patch) | |
tree | 29b6dbb8cb48067c593169665d0eb06dede06353 /libglusterfsclient/src | |
parent | 7eb61fb44986fc834a19d9f38754f1be54d07e09 (diff) |
libglusterfsclient: A Fix deadlock in ftruncate
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient/src')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 6639356a7..d1cbbac3c 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); |