From 8c45cb1fe847d1ba76c7719b8ad6aeb9f9445f28 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 10 Nov 2022 10:54:56 +0100 Subject: [PATCH] fix: Properly wait for recompression jobs if there is no f subdir --- src/storage/local/LocalStorage_compress.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/storage/local/LocalStorage_compress.cpp b/src/storage/local/LocalStorage_compress.cpp index ecb325bc2..0e034bc2e 100644 --- a/src/storage/local/LocalStorage_compress.cpp +++ b/src/storage/local/LocalStorage_compress.cpp @@ -234,6 +234,9 @@ LocalStorage::recompress(const std::optional level, }, progress_receiver); + // In case there was no f subdir, shut down the thread pool now. + thread_pool.shut_down(); + if (isatty(STDOUT_FILENO)) { PRINT_RAW(stdout, "\n\n"); } -- 2.47.2