summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMilind Changire <mchangir@redhat.com>2017-01-16 15:27:09 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2017-02-02 12:38:19 -0500
commit41c4180437c6dc939b3f94e2fcb50e919c6980fd (patch)
treec4ef5e6322e1e8ccb95df5f1ebfbe069e765d53b /tools
parent16f51cd98c56bcc61209d7cbbc4061bbd3aa8e5b (diff)
tools/glusterfind: delete temporary folder
Problem: Run specific temporary folder created under /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/ remains undeleted. Solution: Delete the temporary folder from all nodes. mainline: > BUG: 1413526 > Reviewed-on: https://review.gluster.org/16416 > Smoke: Gluster Build System <jenkins@build.gluster.org> > NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> > CentOS-regression: Gluster Build System <jenkins@build.gluster.org> > Reviewed-by: Aravinda VK <avishwan@redhat.com> (cherry picked from commit 355c1955039a39c820880be72fe77d4e74af0967) Change-Id: I0edaf868aebb01b15c489434bbb26fe853351384 BUG: 1417527 Signed-off-by: Milind Changire <mchangir@redhat.com> Reviewed-on: https://review.gluster.org/16477 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/glusterfind/src/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/glusterfind/src/main.py b/tools/glusterfind/src/main.py
index f051314b6dc..c125f970a83 100644
--- a/tools/glusterfind/src/main.py
+++ b/tools/glusterfind/src/main.py
@@ -587,7 +587,7 @@ def mode_query(session_dir, args):
except (IOError, OSError):
pass
- run_cmd_nodes("cleanup", args)
+ run_cmd_nodes("cleanup", args, tmpfilename=gtmpfilename)
sys.stdout.write("Generated output file %s\n" % args.outfile)
@@ -646,7 +646,7 @@ def mode_pre(session_dir, args):
except (IOError, OSError):
pass
- run_cmd_nodes("cleanup", args)
+ run_cmd_nodes("cleanup", args, tmpfilename=gtmpfilename)
with open(status_file_pre, "w", buffering=0) as f:
f.write(str(endtime_to_update))