diff options
author | Aravinda VK <avishwan@redhat.com> | 2015-05-27 18:05:35 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-06-12 11:35:35 -0700 |
commit | 36e3e0d92e0692c6565fba631c715654b712556d (patch) | |
tree | 3ed5ed587c1615bfab782fde0d73bf54471ed0a1 /glusterfs.spec.in | |
parent | e444c8f454aa791aa723016ceaa66d9eb2971dc0 (diff) |
tools/glusterfind: Cleanup glusterfind dir after a volume delete
If `glusterfind delete` command was not run before volume delete, stale
session directories exists in /var/lib/glusterd/glusterfind directories.
Also shows these sessions in `glusterfind list`
When Volume is deleted, Post hook will be run which cleans up the stale
session directories
BUG: 1225551
Change-Id: I54c46c30313e92c1bb4cb07918ed2029b375462c
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Reviewed-on: http://review.gluster.org/#/c/10944
Reviewed-on: http://review.gluster.org/11186
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in index bae344fb0c1..a66d3802f8e 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -1228,9 +1228,15 @@ fi %{_libexecdir}/glusterfs/glusterfind %{_bindir}/glusterfind %{_libexecdir}/glusterfs/peer_add_secret_pub +%{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py +%exclude %{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyc +%exclude %{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyo %changelog +* Thu Jun 11 2015 Aravinda VK <avishwan@redhat.com> +- Added post hook for volume delete as part of glusterfind (#1225551) + * Fri Jun 5 2015 Niels de Vos <ndevos@redhat.com> - Fix building on RHEL-5 based distributions (#1228510) |