From 0b2eef4940d9818f91f455d0cdb4f37db4fbb158 Mon Sep 17 00:00:00 2001 From: Karl Cronburg Date: Wed, 6 Jul 2016 15:54:10 -0400 Subject: [PATCH 1/1] samples being added to the pending log were silently dropped because we failed to set nr_samples in the new log they get copied into --- stat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stat.c b/stat.c index e0e97cd9..96cd7649 100644 --- 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; -- 2.25.1