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

Commit7d70809

Browse files
committed
Refactor creation of backup_label and backup history files
This change simplifies some of the logic related to the generation andcreation of the backup_label and backup history files, which has becomeunnecessarily complicated since the removal of the exclusive backup modein commit 39969e2. The code was previously generating the contents ofthese files as a string (start phase for the backup_label and stop phasefor the backup history file), one problem being that the contents of thebackup_label string were scanned to grab some of its internal contentsat the stop phase.This commit changes the logic so as we store the data required to buildthese files in an intermediate structure named BackupState. Thebackup_label file and backup history file strings are generated whenthey are ready to be sent back to the client. Both files are nowgenerated with the same code path. While on it, this commit renamessome variables for clarity.Two new files named xlogbackup.{c,h} are introduced in this commit, toremove from xlog.c some of the logic around base backups. Note thatmore could be moved to this new set of files.Author: Bharath Rupireddy, Michael PaquierReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/CALj2ACXWwTDgJqCjdaPyfR7djwm6SrybGcrZyrvojzcsmt4FFw@mail.gmail.com
1 parent216f9c1 commit7d70809

File tree

9 files changed

+292
-202
lines changed

9 files changed

+292
-202
lines changed

‎src/backend/access/transam/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ OBJS = \
2929
xact.o\
3030
xlog.o\
3131
xlogarchive.o\
32+
xlogbackup.o\
3233
xlogfuncs.o\
3334
xloginsert.o\
3435
xlogprefetcher.o\

‎src/backend/access/transam/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ backend_sources += files(
1515
'xact.c',
1616
'xlog.c',
1717
'xlogarchive.c',
18+
'xlogbackup.c',
1819
'xlogfuncs.c',
1920
'xloginsert.c',
2021
'xlogprefetcher.c',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp