!2697 解决问题:pg_resetxlog工具在普通数据库下执行失败

Merge pull request !2697 from zhaobingyu/master
This commit is contained in:
opengauss-bot
2022-12-27 08:42:21 +00:00
committed by Gitee

View File

@ -264,7 +264,7 @@ int main(int argc, char* argv[])
fprintf(stderr, _("%s: socketpath cannot be set when disable dss\n"), progname); fprintf(stderr, _("%s: socketpath cannot be set when disable dss\n"), progname);
exit(1); exit(1);
} }
if (dss.vgname == NULL) { if (dss.vgname != NULL) {
fprintf(stderr, _("%s: vgname cannot be set when disable dss\n"), progname); fprintf(stderr, _("%s: vgname cannot be set when disable dss\n"), progname);
exit(1); exit(1);
} }