diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-06-14 23:25:51 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-14 22:38:05 -0700 |
commit | 5bcb4ddca3d309836dc15aa6e985c0e1fb2a0e05 (patch) | |
tree | 8a57a2b823e8c5a2b2a0013fa38e9925cfab4f03 | |
parent | 5e5aede7873c7deb696efae679d870134ddbc9a5 (diff) |
features/locks:update the refcount while releasing a lockv3.1.5qa3
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 3025 (open lock and close leads to memleak)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3025
-rw-r--r-- | xlators/features/locks/src/posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index dacc2b04eed..e9173785039 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -1345,6 +1345,7 @@ pl_release (xlator_t *this, fd_t *fd) "Releasing all locks with fd %p", fd); delete_locks_of_fd (this, pl_inode, fd); + pl_update_refkeeper (this, fd->inode); ret = fd_ctx_del (fd, this, &tmp); if (ret) { |