Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3ede63c

Browse files
committed
Replace lcfse to lzfse
1 parentce3da29 commit3ede63c

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-
#elifCFS_COMPRESSOR==LCFSE_COMPRESSOR
184+
#elifCFS_COMPRESSOR==LZFSE_COMPRESSOR
185185

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

188188
size_tcfs_compress(void*dst,size_tdst_size,voidconst*src,size_tsrc_size)
189189
{
190-
char*scratch_buf=palloc(lcfse_encode_scratch_size());
191-
size_trc=lcfse_encode_buffer(dst,dst_size,src,src_size,scratch_buf);
190+
char*scratch_buf=palloc(lzfse_encode_scratch_size());
191+
size_trc=lzfse_encode_buffer(dst,dst_size,src,src_size,scratch_buf);
192192
pfree(scratch_buf);
193193
returnrc;
194194
}
195195

196196
size_tcfs_decompress(void*dst,size_tdst_size,voidconst*src,size_tsrc_size)
197197
{
198-
char*scratch_buf=palloc(lcfse_encode_scratch_size());
199-
size_trc=lcfse_decode_buffer(dst,dst_size,src,src_size,scratch_buf);
198+
char*scratch_buf=palloc(lzfse_encode_scratch_size());
199+
size_trc=lzfse_decode_buffer(dst,dst_size,src,src_size,scratch_buf);
200200
pfree(scratch_buf);
201201
returnrc;
202202
}
203203

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

209209
#elifCFS_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
#defineZLIB_COMPRESSOR 2
3333
#defineLZ4_COMPRESSOR 3
3434
#defineSNAPPY_COMPRESSOR 4
35-
#defineLCFSE_COMPRESSOR 5
35+
#defineLZFSE_COMPRESSOR 5
3636
#defineZSTD_COMPRESSOR 6
3737

3838
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp