projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4035cd5
)
Fix compilation warning in xloginsert.c
author
Michael Paquier
Tue, 29 Jun 2021 02:54:11 +0000
(11:54 +0900)
committer
Michael Paquier
Tue, 29 Jun 2021 02:57:18 +0000
(11:57 +0900)
This is reproducible with gcc using at least -O0. The last checks
validating the compression of a block could not be reached with this
variable not set, but let's be clean.
Oversight in
4035cd5
, per buildfarm member lapwing.
src/backend/access/transam/xloginsert.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/xloginsert.c
b/src/backend/access/transam/xloginsert.c
index 10b3b090535192f692eb13c6c8f5aaa340707a10..3d2c9c3e8cf529279e0c6e40949b331a1ae7a346 100644
(file)
--- a/
src/backend/access/transam/xloginsert.c
+++ b/
src/backend/access/transam/xloginsert.c
@@
-863,7
+863,7
@@
XLogCompressBackupBlock(char *page, uint16 hole_offset, uint16 hole_length,
char *dest, uint16 *dlen)
{
int32 orig_len = BLCKSZ - hole_length;
- int32 len;
+ int32 len
= -1
;
int32 extra_bytes = 0;
char *source;
PGAlignedBlock tmp;