mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +03:00
Remove dependency to StringInfo in xlogbackup.{c.h}
This was used as the returned result type of the generated contents for the backup_label and backup history files. This is replaced by a simple string, reducing the cleanup burden of all the callers of build_backup_content(). Reviewed-by: Bharath Rupireddy Discussion: https://postgr.es/m/YzERvNPaZivHEKZJ@paquier.xyz
This commit is contained in:
@@ -317,15 +317,14 @@ perform_base_backup(basebackup_options *opt, bbsink *sink)
|
||||
{
|
||||
struct stat statbuf;
|
||||
bool sendtblspclinks = true;
|
||||
StringInfo backup_label;
|
||||
char *backup_label;
|
||||
|
||||
bbsink_begin_archive(sink, "base.tar");
|
||||
|
||||
/* In the main tar, include the backup_label first... */
|
||||
backup_label = build_backup_content(backup_state, false);
|
||||
sendFileWithContent(sink, BACKUP_LABEL_FILE,
|
||||
backup_label->data, &manifest);
|
||||
pfree(backup_label->data);
|
||||
backup_label, &manifest);
|
||||
pfree(backup_label);
|
||||
|
||||
/* Then the tablespace_map file, if required... */
|
||||
|
Reference in New Issue
Block a user