samples being added to the pending log were silently dropped because we failed to...
authorKarl Cronburg <kcronbur@redhat.com>
Wed, 6 Jul 2016 19:54:10 +0000 (15:54 -0400)
committerKarl Cronburg <kcronbur@redhat.com>
Wed, 6 Jul 2016 19:54:10 +0000 (15:54 -0400)
stat.c

diff --git a/stat.c b/stat.c
index e0e97cd..96cd764 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -1949,6 +1949,7 @@ static struct io_logs *regrow_log(struct io_log *iolog)
                dst = get_sample(iolog, cur_log, i);
                memcpy(dst, src, log_entry_sz(iolog));
        }
+       cur_log->nr_samples = iolog->pending->nr_samples;
 
        iolog->pending->nr_samples = 0;
        return cur_log;