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

Commit a9f24af

Browse files
committed
fix: don't delete the parent directory of the task file
Signed-off-by: lowzj <[email protected]>
1 parent eb8359c commit a9f24af

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)