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

Commitfc74e7d

Browse files
committed
Merge branch 'ptrack_to_delta'
2 parentsb7a4439 +8b43cae commitfc74e7d

File tree

3 files changed

+313
-79
lines changed

3 files changed

+313
-79
lines changed

‎src/ptrack.c‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,21 @@ get_ptrack_version(PGconn *backup_conn, PGNodeInfo *nodeInfo)
202202
elseif (strcmp(ptrack_version_str,"2.1")==0)
203203
nodeInfo->ptrack_version_num=21;
204204
else
205-
elog(WARNING,"Update your ptrack to the version1.5 or upper. Current version is %s",
205+
elog(WARNING,"Update your ptrack to the version2.1 or upper. Current version is %s",
206206
ptrack_version_str);
207207

208+
/* ptrack 1.X is buggy, so fall back to DELTA backup strategy for safety */
209+
if (nodeInfo->ptrack_version_num >=15&&nodeInfo->ptrack_version_num<20)
210+
{
211+
if (current.backup_mode==BACKUP_MODE_DIFF_PTRACK)
212+
{
213+
elog(WARNING,"Update your ptrack to the version 2.1 or upper. Current version is %s. "
214+
"Fall back to DELTA backup.",
215+
ptrack_version_str);
216+
current.backup_mode=BACKUP_MODE_DIFF_DELTA;
217+
}
218+
}
219+
208220
PQclear(res_db);
209221
}
210222

‎tests/helpers/ptrack_helpers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def make_simple_node(
365365
options['max_wal_senders']=10
366366

367367
ifptrack_enable:
368-
ifnode.major_version>11:
368+
ifnode.major_version>=11:
369369
options['ptrack.map_size']='128'
370370
options['shared_preload_libraries']='ptrack'
371371
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp