双集群build删除复制槽软连接
This commit is contained in:
@ -1417,11 +1417,14 @@ static void DeleteSubDataDir(const char* dirname)
|
|||||||
de_slot->d_name);
|
de_slot->d_name);
|
||||||
securec_check_ss_c(nRet, "", "");
|
securec_check_ss_c(nRet, "", "");
|
||||||
if (!rmtree(fullpath, true)) {
|
if (!rmtree(fullpath, true)) {
|
||||||
|
/* enable dss, something in pg_replslot may be a link */
|
||||||
|
if (unlink(fullpath) != 0) {
|
||||||
pg_log(PG_WARNING, _("failed to remove dir %s,errno=%d.\n"), fullpath, errno);
|
pg_log(PG_WARNING, _("failed to remove dir %s,errno=%d.\n"), fullpath, errno);
|
||||||
(void)closedir(dir);
|
(void)closedir(dir);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
(void)closedir(dir_slot);
|
(void)closedir(dir_slot);
|
||||||
}
|
}
|
||||||
} else if (!rmtree(fullpath, true)) {
|
} else if (!rmtree(fullpath, true)) {
|
||||||
|
Reference in New Issue
Block a user