diff options
author | Milind Changire <mchangir@redhat.com> | 2017-01-16 15:27:09 +0530 |
---|---|---|
committer | Aravinda VK <avishwan@redhat.com> | 2017-01-30 00:27:25 -0500 |
commit | 355c1955039a39c820880be72fe77d4e74af0967 (patch) | |
tree | 345cdf08f5981ec3eb71b82a17bbefcdc823c679 | |
parent | f2406fa6155267fa747d9342092ee7709a2531a9 (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.
Change-Id: I0edaf868aebb01b15c489434bbb26fe853351384
BUG: 1413526
Signed-off-by: Milind Changire <mchangir@redhat.com>
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>
-rw-r--r-- | tools/glusterfind/src/main.py | 4 |
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)) |