You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by ch...@apache.org on 2025/10/01 09:44:47 UTC

(cloudberry) branch cbdb-postgres-merge updated: Fix compile errors for backup

This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this push:
     new fc6f877ce10 Fix compile errors for backup
fc6f877ce10 is described below

commit fc6f877ce10f1d0204c9b9552ca3dd08a5521bda
Author: Jinbao Chen <ch...@gmail.com>
AuthorDate: Wed Oct 1 17:44:34 2025 +0800

    Fix compile errors for backup
---
 src/backend/backup/basebackup.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/src/backend/backup/basebackup.c b/src/backend/backup/basebackup.c
index 23c5b9af08b..d325ff9e793 100644
--- a/src/backend/backup/basebackup.c
+++ b/src/backend/backup/basebackup.c
@@ -298,19 +298,6 @@ perform_base_backup(basebackup_options *opt, bbsink *sink)
 	state.startptr = backup_state->startpoint;
 	state.starttli = backup_state->starttli;
 
-	Assert(!XLogRecPtrIsInvalid(startptr));
-
-	elogif(!debug_basebackup, LOG,
-		   "basebackup perform -- "
-		   "Basebackup start xlog location = %X/%X",
-		   (uint32) (startptr >> 32), (uint32) startptr);
-
-	/*
-	 * Set xlogCleanUpTo so that checkpoint process knows
-	 * which old xlog files should not be cleaned
-	 */
-	WalSndSetXLogCleanUpTo(startptr);
-
 	SIMPLE_FAULT_INJECTOR("base_backup_post_create_checkpoint");
 
 	/*
@@ -1266,7 +1253,7 @@ sendTablespace(bbsink *sink, char *path, char *spcoid, bool sizeonly,
 		return 0;
 	}
 
-	size = _tarWriteHeader(sink, TABLESPACE_VERSION_DIRECTORY, NULL, &statbuf,
+	size = _tarWriteHeader(sink, GP_TABLESPACE_VERSION_DIRECTORY, NULL, &statbuf,
 						   sizeonly);
 
 	/* Send all the files in the tablespace version directory */


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org