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 c921f5f4379187e5affa6622f360f489b8fce92d..851cc2c0ccf7188da3755e80deeaf8b95e34d83d 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];