Skip to content

Commit

Permalink
Don't use ZSTD_defaultCLevel() as it's not available on older version…
Browse files Browse the repository at this point in the history
…s of zstd (#155)

Summary:
Pull Request resolved: #155

ZSTD_defaultCLevel() isn't always available on the version of zstd we get in open source, breaking some CI builds on GitHub, but ZSTD_CLEVEL_DEFAULT goes back to version v1.3.5.

Reviewed By: hanghu

Differential Revision: D60815132

fbshipit-source-id: c3c609cadbcc59749f995eb4fa5b6f27e0bbcc0f
  • Loading branch information
Georges Berenger authored and facebook-github-bot committed Aug 6, 2024
1 parent dff86fa commit 0f74755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vrs/Compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct CompressionPresetConverter : public EnumStringConverter<
int zstdPresetToCompressionLevel(CompressionPreset preset) {
auto iter = sZstdPresets.find(preset);
if (iter == sZstdPresets.end()) {
return ZSTD_defaultCLevel();
return ZSTD_CLEVEL_DEFAULT;
}
return iter->second;
}
Expand Down

0 comments on commit 0f74755

Please sign in to comment.