From 19417edaa23ea4bcdb1388e12eecd5ea39db8803 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 7 Dec 2015 21:56:34 -0700 Subject: [PATCH] iolog: ensure we always store compressed, if log_store_compressed == 1 Before this commit, we depend on log_compression= always being set. But we might want the logs store compressed, even if we don't continually compress chunks at runtime. Signed-off-by: Jens Axboe --- iolog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iolog.c b/iolog.c index 82b2b8a3..d7c8a45d 100644 --- a/iolog.c +++ b/iolog.c @@ -594,7 +594,7 @@ void setup_log(struct io_log **log, struct log_params *p, if (l->log_gz && !p->td) l->log_gz = 0; - else if (l->log_gz) { + else if (l->log_gz || l->log_gz_store) { pthread_mutex_init(&l->chunk_lock, NULL); p->td->flags |= TD_F_COMPRESS_LOG; } -- 2.25.1