@@ -112,7 +112,7 @@ static int cfs_gc_processed_segments;
112
112
* - ZLIB_COMPRESSOR - default choice
113
113
* - LZ4_COMPRESSOR
114
114
* - SNAPPY_COMPRESSOR
115
- * - LCFSE_COMPRESSOR
115
+ * - LZFSE_COMPRESSOR
116
116
* - ZSTD_COMPRESSOR
117
117
* - LZ_COMPRESSOR - if none of options is chosen, use standard pglz_compress
118
118
* which is slow and non-efficient in comparison with others,
@@ -181,29 +181,29 @@ char const* cfs_algorithm()
181
181
return "snappy" ;
182
182
}
183
183
184
- #elif CFS_COMPRESSOR == LCFSE_COMPRESSOR
184
+ #elif CFS_COMPRESSOR == LZFSE_COMPRESSOR
185
185
186
- #include <lcfse .h>
186
+ #include <lzfse .h>
187
187
188
188
size_t cfs_compress (void * dst , size_t dst_size , void const * src , size_t src_size )
189
189
{
190
- char * scratch_buf = palloc (lcfse_encode_scratch_size ());
191
- size_t rc = lcfse_encode_buffer (dst , dst_size , src , src_size , scratch_buf );
190
+ char * scratch_buf = palloc (lzfse_encode_scratch_size ());
191
+ size_t rc = lzfse_encode_buffer (dst , dst_size , src , src_size , scratch_buf );
192
192
pfree (scratch_buf );
193
193
return rc ;
194
194
}
195
195
196
196
size_t cfs_decompress (void * dst , size_t dst_size , void const * src , size_t src_size )
197
197
{
198
- char * scratch_buf = palloc (lcfse_encode_scratch_size ());
199
- size_t rc = lcfse_decode_buffer (dst , dst_size , src , src_size , scratch_buf );
198
+ char * scratch_buf = palloc (lzfse_encode_scratch_size ());
199
+ size_t rc = lzfse_decode_buffer (dst , dst_size , src , src_size , scratch_buf );
200
200
pfree (scratch_buf );
201
201
return rc ;
202
202
}
203
203
204
204
char const * cfs_algorithm ()
205
205
{
206
- return "lcfse " ;
206
+ return "lzfse " ;
207
207
}
208
208
209
209
#elif CFS_COMPRESSOR == ZSTD_COMPRESSOR
0 commit comments