SsIsSkipPath代码规范完善

This commit is contained in:
chenzhikai
2023-04-28 10:39:58 +08:00
parent fe1cd875b9
commit a8f85f703c

View File

@ -1264,7 +1264,6 @@ bool SsIsSkipPath(const char* dirname, bool needskipall)
if (IsBeginWith(dirname, "pg_xlog") > 0) { if (IsBeginWith(dirname, "pg_xlog") > 0) {
return true; return true;
} }
} else { } else {
/* skip other node pg_xlog except primary */ /* skip other node pg_xlog except primary */
if (IsBeginWith(dirname, "pg_xlog") > 0) { if (IsBeginWith(dirname, "pg_xlog") > 0) {
@ -1279,6 +1278,7 @@ bool SsIsSkipPath(const char* dirname, bool needskipall)
return true; return true;
} }
} }
return false;
} }
static void DeleteSubDataDir(const char* dirname) static void DeleteSubDataDir(const char* dirname)