Skip to content

Commit f9e26bb

Browse files
authored
Merge pull request #4394 from AZero13/zstd
Remove redundant setting of allJobsCompleted to 1
2 parents 8c65186 + 50f1694 commit f9e26bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/compress/zstdmt_compress.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,7 @@ size_t ZSTDMT_initCStream_internal(
12681268

12691269
if (mtctx->allJobsCompleted == 0) { /* previous compression not correctly finished */
12701270
ZSTDMT_waitForAllJobsCompleted(mtctx);
1271-
ZSTDMT_releaseAllJobResources(mtctx);
1272-
mtctx->allJobsCompleted = 1;
1271+
ZSTDMT_releaseAllJobResources(mtctx); /* Will set allJobsCompleted to 1 */
12731272
}
12741273

12751274
mtctx->params = params;

0 commit comments

Comments
 (0)