]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed missing zstdmt_compress.h dependency 896/head
authorYann Collet <cyan@fb.com>
Thu, 19 Oct 2017 19:09:34 +0000 (12:09 -0700)
committerYann Collet <cyan@fb.com>
Thu, 19 Oct 2017 19:09:34 +0000 (12:09 -0700)
we lose a warning message :
when a job size is chosen < minimum job size for multithreading,
it is automatically resized to minimum size.

If this information is really useful, it should be present in zstd.h now.

programs/fileio.c

index 7efa3c656040ed9319d7f156cc97e6a3623f75be..a8e33994cd670f1890ccbdc771a9e007df6c4507 100644 (file)
@@ -203,10 +203,6 @@ static U32 g_blockSize = 0;
 void FIO_setBlockSize(unsigned blockSize) {
     if (blockSize && g_nbThreads==1)
         DISPLAYLEVEL(2, "Setting block size is useless in single-thread mode \n");
-#ifdef ZSTD_MULTITHREAD
-    if (blockSize-1 < ZSTDMT_SECTION_SIZE_MIN-1)   /* intentional underflow */
-        DISPLAYLEVEL(2, "Note : minimum block size is %u KB \n", (ZSTDMT_SECTION_SIZE_MIN>>10));
-#endif
     g_blockSize = blockSize;
 }
 #define FIO_OVERLAP_LOG_NOTSET 9999