From 355c1955039a39c820880be72fe77d4e74af0967 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Mon, 16 Jan 2017 15:27:09 +0530 Subject: tools/glusterfind: delete temporary folder Problem: Run specific temporary folder created under /usr/var/lib/misc/glusterfsd/glusterfind/// remains undeleted. Solution: Delete the temporary folder from all nodes. Change-Id: I0edaf868aebb01b15c489434bbb26fe853351384 BUG: 1413526 Signed-off-by: Milind Changire Reviewed-on: https://review.gluster.org/16416 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Aravinda VK --- tools/glusterfind/src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/glusterfind') 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)) -- cgit