Skip to content

Commit 57a1637

Browse files
committed
debug for cache check owner
1 parent 116ec25 commit 57a1637

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/rpc/k8s.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func ExtractPvcFromURL(path string) string {
117117
splitPrefix := ""
118118
if strings.HasPrefix(path, RootPrefix) {
119119
splitPrefix = RootPrefix
120-
} else if strings.HasPrefix(path, CacheRootPath) {
120+
} else if strings.HasPrefix(path, CacheRootPath) || strings.HasPrefix(path, AppDataRootPath) {
121121
splitPrefix = CacheRootPath
122122
} else {
123123
return ""

pkg/rpc/watcher.go

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ var RootPrefix = os.Getenv("ROOT_PREFIX") // "/data"
2626

2727
var CacheRootPath = os.Getenv("CACHE_ROOT_PATH") // "/appcache"
2828

29+
var AppDataRootPath = "/AppData"
30+
2931
var ContentPath = os.Getenv("CONTENT_PATH") // "/Home/Documents"
3032

3133
var watcher *jfsnotify.Watcher = nil

0 commit comments

Comments
 (0)