You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/06/26 01:55:53 UTC
[doris] branch master updated: [fix](backup) fix mkdir failed (#10422) (#10423)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new f6ef1aad5c [fix](backup) fix mkdir failed (#10422) (#10423)
f6ef1aad5c is described below
commit f6ef1aad5c3d3b4a49dbc04813bb7f830b878376
Author: HB <13...@qq.com>
AuthorDate: Sun Jun 26 09:55:48 2022 +0800
[fix](backup) fix mkdir failed (#10422) (#10423)
---
fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java
index 5cc6c0aba4..d26c1dbe1d 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java
@@ -659,7 +659,7 @@ public class BackupJob extends AbstractJob {
Files.walk(localJobDirPath, FileVisitOption.FOLLOW_LINKS).sorted(Comparator.reverseOrder())
.map(Path::toFile).forEach(File::delete);
}
- if (!jobDir.mkdir()) {
+ if (!jobDir.mkdirs()) {
status = new Status(ErrCode.COMMON_ERROR, "Failed to create tmp dir: " + localJobDirPath);
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org