iolog: fix two bugs in deferred growing
[fio.git] / iolog.c
diff --git a/iolog.c b/iolog.c
index 3723e0a86025afe460c11a7585e14a365f37022b..d9a17a5bcc44537778aa646c0b731a3443fe77ee 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -591,7 +591,7 @@ void setup_log(struct io_log **log, struct log_params *p,
                struct io_logs *p;
 
                p = calloc(1, sizeof(*l->pending));
-               p->max_samples = l->td->o.iodepth;
+               p->max_samples = DEF_LOG_ENTRIES;
                p->log = calloc(p->max_samples, log_entry_sz(l));
                l->pending = p;
        }