Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit 6eb2e96

Browse filesBrowse 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
Copy full SHA for 6eb2e96

File tree

Expand file treeCollapse file tree

1 file changed

+0
-12
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-12
lines changed
Open diff view settings
Collapse file

‎supernode/daemon/mgr/cdn/path_util.go‎

Copy file name to clipboardExpand all lines: supernode/daemon/mgr/cdn/path_util.go
-12Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.