diff options
author | cholcombe973 <cholcombe973@review.gluster.org> | 2017-11-15 19:28:05 +0000 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-11-20 18:33:52 +0000 |
commit | aaef7e0d214b94a798b727af125006d07335b53c (patch) | |
tree | 1165196364a2bf29eecdfd3fa320c48b6117da91 /xlators/debug/io-stats/src | |
parent | dbd94d5bee93ca9ad4f485147b90b4ccf8a3b61e (diff) |
Revert "debug/io-stats: Append stats for each interval in the same file"
This reverts commit fc73ae5f81ef5926e3dc2311db116250d0f2a321.
See bug: https://bugzilla.redhat.com/show_bug.cgi?id=1513692
Change-Id: I00d5989b042d4e345621c596d5370d324948557f
Bug: 1513692
Signed-off-by: Chris Holcombe <xfactor973@gmail.com>
Diffstat (limited to 'xlators/debug/io-stats/src')
-rw-r--r-- | xlators/debug/io-stats/src/io-stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index 5656e32a4f5..c046aaae181 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -3167,7 +3167,7 @@ _ios_dump_thread (xlator_t *this) { * just hold it open and rewind/truncate on each iteration. * Leaving it alone for now. */ - stats_logfp = fopen (stats_filename, "a+"); + stats_logfp = fopen (stats_filename, "w+"); if (stats_logfp) { (void) ios_dump_args_init (&args, conf->dump_format, |