Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit 6eb2e96

Browse files
committed
Merge pull request #1353 from lowzj/fix-deleteTaskFiles
fix: don't delete the parent directory of the task file backport to 1.0.x
2 parents 386e25f + b23342a commit 6eb2e96

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

supernode/daemon/mgr/cdn/path_util.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ func getMd5DataRaw(taskID string) *store.Raw {
6969
}
7070
}
7171

72-
func getParentRaw(taskID string) *store.Raw {
73-
return &store.Raw{
74-
Bucket: config.DownloadHome,
75-
Key: getParentKey(taskID),
76-
}
77-
}
78-
7972
func getHomeRaw() *store.Raw {
8073
return &store.Raw{
8174
Bucket: config.DownloadHome,
@@ -98,10 +91,5 @@ func deleteTaskFiles(ctx context.Context, cacheStore *store.Store, taskID string
9891
return err
9992
}
10093

101-
if err := cacheStore.Remove(ctx, getParentRaw(taskID)); err != nil &&
102-
!store.IsKeyNotFound(err) {
103-
return err
104-
}
105-
10694
return nil
10795
}

0 commit comments

Comments
 (0)