Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1f29b15

Browse files
committed
[refer #PGPRO-3213] Use empty string as default value of OnlineUpgradePath instead of NULL
1 parent 1b9c889 commit 1f29b15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8838,7 +8838,7 @@ CreateCheckPoint(int flags)
88388838
* We now have ProcLastRecPtr = start of actual checkpoint record, recptr
88398839
* = end of actual checkpoint record.
88408840
*/
8841-
if (shutdown && checkPoint.redo != ProcLastRecPtr && OnlineUpgradePath == NULL)
8841+
if (shutdown && checkPoint.redo != ProcLastRecPtr && *OnlineUpgradePath == '\0')
88428842
ereport(PANIC,
88438843
(errmsg("concurrent write-ahead log activity while database system is shutting down")));
88448844

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3678,7 +3678,7 @@ static struct config_string ConfigureNamesString[] =
36783678
GUC_SUPERUSER_ONLY
36793679
},
36803680
&OnlineUpgradePath,
3681-
NULL,
3681+
"",
36823682
check_online_update_support, NULL, NULL
36833683
},
36843684

0 commit comments

Comments
 (0)