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

Commit 8005749

Browse files
author
Sofia Kopikova
committed
[PBCKP-125] changes in function call CreateWalDirectoryMethod for 15 version
1 parent 9e9509d commit 8005749

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/stream.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,19 @@ StreamLog(void *arg)
275275
ctl.mark_done = false;
276276

277277
#if PG_VERSION_NUM >= 100000
278+
#if PG_VERSION_NUM >= 150000
279+
ctl.walmethod = CreateWalDirectoryMethod(
280+
stream_arg->basedir,
281+
COMPRESSION_NONE,
282+
0,
283+
false);
284+
#else /* PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 150000 */
278285
ctl.walmethod = CreateWalDirectoryMethod(
279286
stream_arg->basedir,
280287
// (instance_config.compress_alg == NONE_COMPRESS) ? 0 : instance_config.compress_level,
281288
0,
282289
false);
290+
#endif /* PG_VERSION_NUM >= 150000 */
283291
ctl.replication_slot = replication_slot;
284292
ctl.stop_socket = PGINVALID_SOCKET;
285293
ctl.do_sync = false; /* We sync all files at the end of backup */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /