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 <axboe@fb.com>
if (l->log_gz && !p->td)
l->log_gz = 0;
if (l->log_gz && !p->td)
l->log_gz = 0;
+ else if (l->log_gz || l->log_gz_store) {
pthread_mutex_init(&l->chunk_lock, NULL);
p->td->flags |= TD_F_COMPRESS_LOG;
}
pthread_mutex_init(&l->chunk_lock, NULL);
p->td->flags |= TD_F_COMPRESS_LOG;
}