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 @@ -148,8 +148,14 @@ get_control_data(ClusterInfo *cluster, bool live_check)
148
148
/* remove leading spaces */
149
149
while (* p == ' ' )
150
150
p ++ ;
151
- if (strcmp (p , "shut down\n" ) != 0 &&
152
- strcmp (p , "shut down in recovery\n" ) != 0 )
151
+ if (strcmp (p , "shut down in recovery\n" ) == 0 )
152
+ {
153
+ if (cluster == & old_cluster )
154
+ pg_log (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" );
155
+ else
156
+ pg_log (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" );
157
+ }
158
+ else if (strcmp (p , "shut down\n" ) != 0 )
153
159
{
154
160
if (cluster == & old_cluster )
155
161
pg_log (PG_FATAL , "The source cluster was not shut down cleanly.\n" );
You can’t perform that action at this time.
0 commit comments