File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,14 @@ get_control_data(ClusterInfo *cluster, bool live_check)
149
149
/* remove leading spaces */
150
150
while (* p == ' ' )
151
151
p ++ ;
152
- if (strcmp (p , "shut down\n" ) != 0 &&
153
- strcmp (p , "shut down in recovery\n" ) != 0 )
152
+ if (strcmp (p , "shut down in recovery\n" ) == 0 )
153
+ {
154
+ if (cluster == & old_cluster )
155
+ pg_fatal ("The source cluster was shut down while in recovery mode. To upgrade, use \"rsync\" as documented or shut it down as a primary.\n" );
156
+ else
157
+ pg_fatal ("The target cluster was shut down while in recovery mode. To upgrade, use \"rsync\" as documented or shut it down as a primary.\n" );
158
+ }
159
+ else if (strcmp (p , "shut down\n" ) != 0 )
154
160
{
155
161
if (cluster == & old_cluster )
156
162
pg_fatal ("The source cluster was not shut down cleanly.\n" );
You can’t perform that action at this time.
0 commit comments