File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed
Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -902,9 +902,7 @@ class GpStart:
902902
903903 if is_external_fts :
904904 if options .fts_hosts is None :
905- coordinator_data_directory = os .getenv ('COORDINATOR_DATA_DIRECTORY' )
906- if coordinator_data_directory is None :
907- coordinator_data_directory = options .coordinatorDataDirectory
905+ coordinator_data_directory = gp .get_coordinatordatadir ()
908906 options .fts_hosts = coordinator_data_directory + '/config' + '/fts_host'
909907
910908 return GpStart (options .specialMode , options .restricted ,
Original file line number Diff line number Diff line change @@ -959,9 +959,7 @@ class GpStop:
959959
960960 if is_external_fts :
961961 if options .fts_hosts is None :
962- coordinator_data_directory = os .getenv ('COORDINATOR_DATA_DIRECTORY' )
963- if coordinator_data_directory is None :
964- coordinator_data_directory = options .coordinatorDataDirectory
962+ coordinator_data_directory = gp .get_coordinatordatadir ()
965963
966964 options .fts_hosts = coordinator_data_directory + '/config' + '/fts_host'
967965
Original file line number Diff line number Diff line change @@ -371,9 +371,7 @@ get_cluster_version(ClusterInfo *cluster)
371371
372372 PQfinish (conn );
373373
374- stop_postmaster (cluster );
375-
376- return ;
374+ stop_postmaster (false);
377375}
378376
379377#ifdef WIN32
Original file line number Diff line number Diff line change @@ -585,6 +585,8 @@ pqsecure_open_gss(PGconn *conn)
585585
586586 PqGSSRecvLength += ret ;
587587
588+ Assert (PqGSSRecvLength < PQ_GSS_RECV_BUFFER_SIZE );
589+ PqGSSRecvBuffer [PqGSSRecvLength ] = '\0' ;
588590 appendPQExpBuffer (& conn -> errorMessage , "%s\n" , PqGSSRecvBuffer + 1 );
589591
590592 return PGRES_POLLING_FAILED ;
You can’t perform that action at this time.
0 commit comments