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

Commit0071fc7

Browse files
committed
Fix header inclusion order in xloginsert.c with lz4.h
Per project policy, all system and library headers need to be declaredin the backend code after "postgres.h" and before the internal headers,but4035cd5 broke this policy when adding support for LZ4 inwal_compression.Noticed while reviewing the patch to add support for zstd in this area.This only impacts HEAD, so there is no need for a back-patch.
1 parent352d297 commit0071fc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/access/transam/xloginsert.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
#include"postgres.h"
2121

22+
#ifdefUSE_LZ4
23+
#include<lz4.h>
24+
#endif
25+
2226
#include"access/xact.h"
2327
#include"access/xlog.h"
2428
#include"access/xlog_internal.h"
@@ -38,7 +42,6 @@
3842
* backup block image.
3943
*/
4044
#ifdefUSE_LZ4
41-
#include<lz4.h>
4245
#defineLZ4_MAX_BLCKSZLZ4_COMPRESSBOUND(BLCKSZ)
4346
#else
4447
#defineLZ4_MAX_BLCKSZ0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp