Skip to content

Commit 7958e80

Browse files
committed
Resolve few simple rebase markers from pg_upgrade
1 parent 6deb480 commit 7958e80

File tree

4 files changed

+4
-40
lines changed

4 files changed

+4
-40
lines changed

src/bin/pg_upgrade/Makefile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,21 @@ uninstall:
5454
clean distclean maintainer-clean:
5555
rm -f pg_upgrade$(X) $(OBJS)
5656
rm -rf delete_old_cluster.sh log/ tmp_check/ \
57-
<<<<<<< HEAD
5857
reindex_hash.sql \
5958
clusterConfigPostgresAddonsFile clusterConfigFile gpdemo-env.sh \
6059
hostfile regression.diffs aomd_filehandler.c
6160

6261
greenplum/aomd_filehandler.c: $(top_srcdir)/src/backend/access/appendonly/aomd_filehandler.c
6362
rm -f $@ && cd greenplum && $(LN_S) ../$< aomd_filehandler.c
64-
=======
65-
reindex_hash.sql
66-
>>>>>>> REL_16_9
6763

6864
export with_icu
6965

7066
check:
71-
<<<<<<< HEAD
67+
# $(prove_check)
7268
# ignore pg_upgarde to make CI happy, issue: https://github.com/apache/cloudberry/issues/262
7369

74-
#check: test_gpdb.sh all
75-
# bash $< -C -r -s -o $(top_builddir)/gpAux/gpdemo/datadirs/ -b $(DESTDIR)$(bindir)
76-
7770
perfcheck: test_gpdb.sh all
7871
bash $< -p -r -o $(top_builddir)/gpAux/gpdemo/datadirs/ -b $(DESTDIR)$(bindir)
79-
=======
80-
$(prove_check)
81-
>>>>>>> REL_16_9
8272

8373
installcheck:
8474
$(prove_installcheck)

src/bin/pg_upgrade/check.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111

1212
#include "catalog/pg_authid_d.h"
1313
#include "catalog/pg_collation.h"
14-
<<<<<<< HEAD
1514
#include "common/kmgr_utils.h"
16-
=======
17-
>>>>>>> REL_16_9
1815
#include "fe_utils/string_utils.h"
1916
#include "mb/pg_wchar.h"
2017
#include "pg_upgrade.h"

src/bin/pg_upgrade/exec.c

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,8 @@ get_bin_version(ClusterInfo *cluster)
5656
pg_fatal("could not get pg_ctl version data using %s: %s",
5757
cmd, wait_result_to_str(rc));
5858

59-
<<<<<<< HEAD
6059
if (sscanf(cmd_output, "%*s (%s Database) %d.%d", dbstring, &v1, &v2) < 1)
61-
pg_fatal("could not get pg_ctl version output from %s\n", cmd);
62-
=======
63-
if (sscanf(cmd_output, "%*s %*s %d.%d", &v1, &v2) < 1)
6460
pg_fatal("could not get pg_ctl version output from %s", cmd);
65-
>>>>>>> REL_16_9
6661

6762
if (strcmp("Greenplum", dbstring) && strcmp("Cloudberry", dbstring))
6863
pg_fatal("could not upgrade from non Greenplum/Cloudberry version: %s\n", dbstring);
@@ -444,19 +439,12 @@ check_bin_dir(ClusterInfo *cluster, bool check_versions)
444439
static void
445440
check_exec(const char *dir, const char *program, bool check_version)
446441
{
447-
<<<<<<< HEAD
448-
char path[MAXPGPATH];
449-
char line[MAXPGPATH];
450-
char cmd[MAXPGPATH];
451-
char versionstr[128];
452-
char gp_versionstr[128];
453-
int ret;
454-
=======
455442
char path[MAXPGPATH];
456443
char line[MAXPGPATH];
457444
char cmd[MAXPGPATH];
458445
char versionstr[128];
459-
>>>>>>> REL_16_9
446+
char gp_versionstr[128];
447+
int ret;
460448

461449
snprintf(path, sizeof(path), "%s/%s", dir, program);
462450

@@ -476,14 +464,8 @@ check_exec(const char *dir, const char *program, bool check_version)
476464
snprintf(versionstr, sizeof(versionstr), "%s (PostgreSQL) " PG_VERSION, program);
477465
snprintf(gp_versionstr, sizeof(versionstr), "%s (Apache Cloudberry) " PG_VERSION, program);
478466

479-
<<<<<<< HEAD
480467
if (strcmp(line, versionstr) != 0 && strcmp(line, gp_versionstr) != 0)
481-
pg_fatal("check for \"%s\" failed: incorrect version: found \"%s\", expected \"%s\" or \"%s\"\n",
468+
pg_fatal("check for \"%s\" failed: incorrect version: found \"%s\", expected \"%s\" or \"%s\"",
482469
path, line, versionstr, gp_versionstr);
483-
=======
484-
if (strcmp(line, versionstr) != 0)
485-
pg_fatal("check for \"%s\" failed: incorrect version: found \"%s\", expected \"%s\"",
486-
path, line, versionstr);
487-
>>>>>>> REL_16_9
488470
}
489471
}

src/bin/pg_upgrade/file.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@ cloneFile(const char *src, const char *dst,
6363
int save_errno = errno;
6464

6565
unlink(dst);
66-
<<<<<<< HEAD
67-
pg_fatal("error while cloning relation \"%s.%s\" (\"%s\" to \"%s\"): %s\n",
68-
=======
69-
7066
pg_fatal("error while cloning relation \"%s.%s\" (\"%s\" to \"%s\"): %s",
71-
>>>>>>> REL_16_9
7267
schemaName, relName, src, dst, strerror(save_errno));
7368
}
7469

0 commit comments

Comments
 (0)