Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9ae6713c
Commit
9ae6713c
authored
Oct 23, 2016
by
Magnus Hagander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix walmethods.c build without libz
Per numerous buildfarm manuals
parent
d97a59a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/bin/pg_basebackup/walmethods.c
src/bin/pg_basebackup/walmethods.c
+5
-0
No files found.
src/bin/pg_basebackup/walmethods.c
View file @
9ae6713c
...
@@ -416,6 +416,9 @@ tar_write(Walfile f, const void *buf, size_t count)
...
@@ -416,6 +416,9 @@ tar_write(Walfile f, const void *buf, size_t count)
return
count
;
return
count
;
}
}
#endif
#endif
else
/* Can't happen - compression enabled with no libz */
return
-
1
;
}
}
static
bool
static
bool
...
@@ -879,8 +882,10 @@ CreateWalTarMethod(const char *tarbase, int compression, bool sync)
...
@@ -879,8 +882,10 @@ CreateWalTarMethod(const char *tarbase, int compression, bool sync)
tar_data
->
fd
=
-
1
;
tar_data
->
fd
=
-
1
;
tar_data
->
compression
=
compression
;
tar_data
->
compression
=
compression
;
tar_data
->
sync
=
sync
;
tar_data
->
sync
=
sync
;
#ifdef HAVE_LIBZ
if
(
compression
)
if
(
compression
)
tar_data
->
zlibOut
=
(
char
*
)
pg_malloc
(
ZLIB_OUT_SIZE
+
1
);
tar_data
->
zlibOut
=
(
char
*
)
pg_malloc
(
ZLIB_OUT_SIZE
+
1
);
#endif
return
method
;
return
method
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment