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

Commit36ac5d2

Browse files
committed
Do not check config->pgdata in do_archive_push().
We already checked system_identifier.
1 parent0887650 commit36ac5d2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎src/archive.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ do_archive_push(char *wal_file_path, char *wal_file_name)
5454
"Instance '%s' should have SYSTEM_ID = %ld instead of %ld",
5555
wal_file_name,instance_name,config->system_identifier,system_id);
5656

57-
if (strcmp(current_dir,config->pgdata)!=0)
58-
elog(ERROR,"Refuse to push WAL segment %s into archive. Instance parameters mismatch."
59-
"Instance '%s' should have PGDATA = %s instead of %s",
60-
wal_file_name,instance_name,config->pgdata,current_dir);
61-
6257
/* Create 'archlog_path' directory. Do nothing if it already exists. */
6358
dir_create_dir(arclog_path,DIR_PERMISSION);
6459

@@ -106,4 +101,4 @@ do_archive_get(char *wal_file_path, char *wal_file_name)
106101
elog(INFO,"pg_probackup archive-get completed successfully");
107102

108103
return0;
109-
}
104+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp