Patchwork [BUG:875,1/2] client: decrement the 'openfd' count in case of opendir_cbk too

login
register
Submitter Amar Tumballi
Date 2010-10-14 08:04:01
Message ID <20101014080401.GA23459@gluster.com>
Download mbox | patch
Permalink /patch/5495/
State Accepted
Headers show

Comments

Amar Tumballi - 2010-10-14 08:04:01
Signed-off-by: Amar Tumballi <amar@gluster.com>
---
 xlators/protocol/client/src/client3_1-fops.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/protocol/client/src/client3_1-fops.c b/xlators/protocol/client/src/client3_1-fops.c
index d69d9f8..6c48421 100644
--- a/xlators/protocol/client/src/client3_1-fops.c
+++ b/xlators/protocol/client/src/client3_1-fops.c
@@ -2184,6 +2184,8 @@  client3_1_reopendir_cbk (struct rpc_req *req, struct iovec *iov, int count,
 	  }
         }
 
+        decrement_reopen_fd_count (frame->this, conf);
+
 out:
         if (fdctx)
                 client_fdctx_destroy (frame->this, fdctx);