Remove debug/broken assert() in the IOPS logging code
authorJens Axboe <axboe@kernel.dk>
Fri, 2 Dec 2011 07:45:44 +0000 (08:45 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Dec 2011 07:45:44 +0000 (08:45 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c

diff --git a/stat.c b/stat.c
index c921f5f..851cc2c 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -1313,10 +1313,8 @@ void add_iops_sample(struct thread_data *td, enum fio_ddir ddir,
 
        add_stat_sample(&ts->iops_stat[ddir], iops);
 
 
        add_stat_sample(&ts->iops_stat[ddir], iops);
 
-       if (td->iops_log) {
-               assert(iops);
+       if (td->iops_log)
                add_log_sample(td, td->iops_log, iops, ddir, 0);
                add_log_sample(td, td->iops_log, iops, ddir, 0);
-       }
 
        fio_gettime(&td->iops_sample_time, NULL);
        td->stat_io_blocks[ddir] = td->this_io_blocks[ddir];
 
        fio_gettime(&td->iops_sample_time, NULL);
        td->stat_io_blocks[ddir] = td->this_io_blocks[ddir];