Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3ede63c

Browse files
committed
Replace lcfse to lzfse
1 parent ce3da29 commit 3ede63c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/backend/storage/file/cfs.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static int cfs_gc_processed_segments;
112112
* - ZLIB_COMPRESSOR - default choice
113113
* - LZ4_COMPRESSOR
114114
* - SNAPPY_COMPRESSOR
115-
* - LCFSE_COMPRESSOR
115+
* - LZFSE_COMPRESSOR
116116
* - ZSTD_COMPRESSOR
117117
* - LZ_COMPRESSOR - if none of options is chosen, use standard pglz_compress
118118
* which is slow and non-efficient in comparison with others,
@@ -181,29 +181,29 @@ char const* cfs_algorithm()
181181
return "snappy";
182182
}
183183

184-
#elif CFS_COMPRESSOR == LCFSE_COMPRESSOR
184+
#elif CFS_COMPRESSOR == LZFSE_COMPRESSOR
185185

186-
#include <lcfse.h>
186+
#include <lzfse.h>
187187

188188
size_t cfs_compress(void* dst, size_t dst_size, void const* src, size_t src_size)
189189
{
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);
192192
pfree(scratch_buf);
193193
return rc;
194194
}
195195

196196
size_t cfs_decompress(void* dst, size_t dst_size, void const* src, size_t src_size)
197197
{
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);
200200
pfree(scratch_buf);
201201
return rc;
202202
}
203203

204204
char const* cfs_algorithm()
205205
{
206-
return "lcfse";
206+
return "lzfse";
207207
}
208208

209209
#elif CFS_COMPRESSOR == ZSTD_COMPRESSOR

src/include/storage/cfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define ZLIB_COMPRESSOR 2
3333
#define LZ4_COMPRESSOR 3
3434
#define SNAPPY_COMPRESSOR 4
35-
#define LCFSE_COMPRESSOR 5
35+
#define LZFSE_COMPRESSOR 5
3636
#define ZSTD_COMPRESSOR 6
3737

3838
/*

0 commit comments

Comments
 (0)