@@ -113,17 +113,18 @@ void GetIntTblPropCollectorFactory(
113
113
Status CheckCompressionSupported (const ColumnFamilyOptions& cf_options) {
114
114
MutableCFOptions moptions (cf_options);
115
115
ImmutableCFOptions ioptions (cf_options);
116
- if (moptions.compressor && !moptions.compressor ->Supported ()) {
116
+ if (moptions.derived_compressor &&
117
+ !moptions.derived_compressor ->Supported ()) {
117
118
return Status::InvalidArgument (" Compression type " +
118
- moptions.compressor ->GetId () +
119
+ moptions.derived_compressor ->GetId () +
119
120
" is not linked with the binary." );
120
- } else if (moptions.bottommost_compressor &&
121
- !moptions.bottommost_compressor ->Supported ()) {
122
- return Status::InvalidArgument (" Compression type " +
123
- moptions.bottommost_compressor ->GetId () +
124
- " is not linked with the binary." );
125
- } else if (!moptions.compressor_per_level .empty ()) {
126
- for (const auto & compressor : moptions.compressor_per_level ) {
121
+ } else if (moptions.derived_bottommost_compressor &&
122
+ !moptions.derived_bottommost_compressor ->Supported ()) {
123
+ return Status::InvalidArgument (
124
+ " Compression type " + moptions.derived_bottommost_compressor ->GetId () +
125
+ " is not linked with the binary." );
126
+ } else if (!moptions.derived_compressor_per_level .empty ()) {
127
+ for (const auto & compressor : moptions.derived_compressor_per_level ) {
127
128
if (compressor == nullptr ) {
128
129
return Status::InvalidArgument (" Compression type is invalid." );
129
130
} else if (!compressor->Supported ()) {
@@ -153,9 +154,10 @@ Status CheckCompressionSupported(const ColumnFamilyOptions& cf_options) {
153
154
" should be nonzero if we're using zstd's dictionary generator." );
154
155
}
155
156
}
156
- if (moptions.blob_compressor && !moptions.blob_compressor ->Supported ()) {
157
+ if (moptions.derived_blob_compressor &&
158
+ !moptions.derived_blob_compressor ->Supported ()) {
157
159
return Status::InvalidArgument (" Blob compression type " +
158
- moptions.blob_compressor ->GetId () +
160
+ moptions.derived_blob_compressor ->GetId () +
159
161
" is not linked with the binary." );
160
162
}
161
163
return Status::OK ();
0 commit comments