@@ -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)
444439static void
445440check_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}
0 commit comments