1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-01 09:47:01 +03:00

fixed a few access contention

passes thread sanitizer test
This commit is contained in:
Yann Collet
2018-01-17 17:18:19 -08:00
parent 394eec697b
commit aa79c18e3f
2 changed files with 12 additions and 4 deletions

View File

@ -813,8 +813,8 @@ static int FIO_compressFilename_internal(cRess_t ress,
}
}
#if 1
if (READY_FOR_UPDATE)
{ ZSTD_frameProgression const zfp = ZSTD_getFrameProgression(ress.cctx);
if (READY_FOR_UPDATE) {
ZSTD_frameProgression const zfp = ZSTD_getFrameProgression(ress.cctx);
DISPLAYUPDATE(2, "\rRead :%6u MB - Consumed :%6u MB - Compressed :%6u MB => %.2f%%",
(U32)(zfp.ingested >> 20),
(U32)(zfp.consumed >> 20),