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

Commit977240d

Browse files
committed
[PBCKP-129] change catchup logging levels
1 parent1d7a459 commit977240d

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ env:
3636
-PG_VERSION=9.5 PG_BRANCH=REL9_5_STABLE
3737
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=off MODE=archive
3838
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=backup
39-
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=catchup
39+
-PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=catchup
4040
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=off MODE=compression
4141
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=off MODE=delta
4242
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=off MODE=locking

‎src/catchup.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* catchup.c: sync DB cluster
44
*
5-
* Copyright (c) 2021, Postgres Professional
5+
* Copyright (c) 2021-2022, Postgres Professional
66
*
77
*-------------------------------------------------------------------------
88
*/
@@ -203,7 +203,7 @@ catchup_preflight_checks(PGNodeInfo *source_node_info, PGconn *source_conn,
203203

204204
/* fill dest_redo.lsn and dest_redo.tli */
205205
get_redo(dest_pgdata,FIO_LOCAL_HOST,&dest_redo);
206-
elog(VERBOSE,"source.tli = %X, dest_redo.lsn = %X/%X, dest_redo.tli = %X",
206+
elog(LOG,"source.tli = %X, dest_redo.lsn = %X/%X, dest_redo.tli = %X",
207207
current.tli, (uint32) (dest_redo.lsn >>32), (uint32)dest_redo.lsn,dest_redo.tli);
208208

209209
if (current.tli!=1)
@@ -447,12 +447,12 @@ catchup_thread_runner(void *arg)
447447

448448
if (file->write_size==BYTES_INVALID)
449449
{
450-
elog(VERBOSE,"Skipping the unchanged file: \"%s\", read %li bytes",from_fullpath,file->read_size);
450+
elog(LOG,"Skipping the unchanged file: \"%s\", read %li bytes",from_fullpath,file->read_size);
451451
continue;
452452
}
453453

454454
arguments->transfered_bytes+=file->write_size;
455-
elog(VERBOSE,"File \"%s\". Copied "INT64_FORMAT" bytes",
455+
elog(LOG,"File \"%s\". Copied "INT64_FORMAT" bytes",
456456
from_fullpath,file->write_size);
457457
}
458458

@@ -603,7 +603,7 @@ filter_filelist(parray *filelist, const char *pgdata,
603603
&&parray_bsearch(exclude_relative_paths_list,file->rel_path,pgPrefixCompareString)!=NULL)
604604
)
605605
{
606-
elog(LOG,"%s file \"%s\" excluded with --exclude-path option",logging_string,full_path);
606+
elog(INFO,"%s file \"%s\" excluded with --exclude-path option",logging_string,full_path);
607607
file->excluded= true;
608608
}
609609
}
@@ -646,7 +646,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
646646
if (exclude_relative_paths_list!=NULL)
647647
parray_qsort(exclude_relative_paths_list,pgCompareString);
648648

649-
elog(LOG,"Database catchup start");
649+
elog(INFO,"Database catchup start");
650650

651651
if (current.backup_mode!=BACKUP_MODE_FULL)
652652
{
@@ -693,7 +693,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
693693

694694
/* Call pg_start_backup function in PostgreSQL connect */
695695
pg_start_backup(label,smooth_checkpoint,&current,&source_node_info,source_conn);
696-
elog(LOG,"pg_start_backup START LSN %X/%X", (uint32) (current.start_lsn >>32), (uint32) (current.start_lsn));
696+
elog(INFO,"pg_start_backup START LSN %X/%X", (uint32) (current.start_lsn >>32), (uint32) (current.start_lsn));
697697
}
698698

699699
/* Sanity: source cluster must be "in future" relatively to dest cluster */
@@ -763,11 +763,11 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
763763
elog(INFO,"Source PGDATA size: %s (excluded %s)",pretty_source_bytes,pretty_bytes);
764764
}
765765

766-
elog(LOG,"Start LSN (source): %X/%X, TLI: %X",
766+
elog(INFO,"Start LSN (source): %X/%X, TLI: %X",
767767
(uint32) (current.start_lsn >>32), (uint32) (current.start_lsn),
768768
current.tli);
769769
if (current.backup_mode!=BACKUP_MODE_FULL)
770-
elog(LOG,"LSN in destination: %X/%X, TLI: %X",
770+
elog(INFO,"LSN in destination: %X/%X, TLI: %X",
771771
(uint32) (dest_redo.lsn >>32), (uint32) (dest_redo.lsn),
772772
dest_redo.tli);
773773

@@ -821,7 +821,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
821821

822822
join_path_components(dirpath,dest_pgdata,file->rel_path);
823823

824-
elog(VERBOSE,"Create directory '%s'",dirpath);
824+
elog(LOG,"Create directory '%s'",dirpath);
825825
fio_mkdir(dirpath,DIR_PERMISSION,FIO_LOCAL_HOST);
826826
}
827827
else
@@ -850,7 +850,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
850850

851851
join_path_components(to_path,dest_pgdata,file->rel_path);
852852

853-
elog(VERBOSE,"Create directory \"%s\" and symbolic link \"%s\"",
853+
elog(INFO,"Create directory \"%s\" and symbolic link \"%s\"",
854854
linked_path,to_path);
855855

856856
/* create tablespace directory */
@@ -931,7 +931,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
931931

932932
join_path_components(fullpath,dest_pgdata,file->rel_path);
933933
fio_delete(file->mode,fullpath,FIO_LOCAL_HOST);
934-
elog(VERBOSE,"Deleted file \"%s\"",fullpath);
934+
elog(LOG,"Deleted file \"%s\"",fullpath);
935935

936936
/* shrink dest pgdata list */
937937
pgFileFree(file);

‎src/data.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* data.c: utils to parse and backup data pages
44
*
55
* Portions Copyright (c) 2009-2013, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
6-
* Portions Copyright (c) 2015-2019, Postgres Professional
6+
* Portions Copyright (c) 2015-2022, Postgres Professional
77
*
88
*-------------------------------------------------------------------------
99
*/
@@ -694,7 +694,7 @@ catchup_data_file(pgFile *file, const char *from_fullpath, const char *to_fullpa
694694
use_pagemap= true;
695695

696696
if (use_pagemap)
697-
elog(VERBOSE,"Using pagemap for file \"%s\"",file->rel_path);
697+
elog(LOG,"Using pagemap for file \"%s\"",file->rel_path);
698698

699699
/* Remote mode */
700700
if (fio_is_remote(FIO_DB_HOST))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp