diff options
author | Niels de Vos <ndevos@redhat.com> | 2015-07-13 12:16:04 +0200 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-07-18 01:35:57 -0700 |
commit | 85a7ad784e92f4b0bedb44f7e64bf4e9adfae5ce (patch) | |
tree | eb74c4b73ba793f5f4353aae4f52503ec19323f1 /libglusterfs | |
parent | 3d6dacd69ca439e338ad59bfab53ce6c72b028d0 (diff) |
nfs: refcount each auth_cache_entry and related data_t
This makes sure that all the auth_cache_entry structures are only free'd
when there is no reference to it anymore. When it is free'd, the
associated data_t from the auth_cache->cache_dict gets unref'd too.
Upon calling auth_cache_purge(), the auth_cache->cache_dict will free
each auth_cache_entry in a secure way.
Cherry picked from commit 7b51bd636fc5e5e1ae48a4e7cba48d0d20878d15:
> Change-Id: If097cc11838e43599040f5414f82b30fc0fd40c6
> BUG: 1226717
> Signed-off-by: Niels de Vos <ndevos@redhat.com>
> Reviewed-on: http://review.gluster.org/11023
> Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
> Tested-by: Gluster Build System <jenkins@build.gluster.com>
> Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Change-Id: If097cc11838e43599040f5414f82b30fc0fd40c6
BUG: 1242515
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/11646
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Diffstat (limited to 'libglusterfs')
0 files changed, 0 insertions, 0 deletions