解决gs_probackup未输入vgname引发的空指针问题

This commit is contained in:
chendong76
2023-05-23 14:12:59 +08:00
parent b8f3b8a7a2
commit 8fce2a0363

View File

@ -949,6 +949,10 @@ static void dss_init(void)
elog(ERROR, "Remote operations on dss mode are not supported");
}
if (instance_config.dss.vgname == NULL) {
elog(ERROR, "Vgname must be specified in dss mode.");
}
parse_vgname_args(instance_config.dss.vgname);
/* Check dss connect */