SsIsSkipPath代码规范完善

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

View File

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