Browse Source

fix bug with remote.uncache

pull/2252/head
Chris Lu 3 years ago
parent
commit
02f728cb54
  1. 3
      weed/shell/command_remote_uncache.go

3
weed/shell/command_remote_uncache.go

@ -52,7 +52,7 @@ func (c *commandRemoteUncache) Do(args []string, commandEnv *CommandEnv, writer
}
var localMountedDir string
for k, _ := range mappings.Mappings {
for k := range mappings.Mappings {
if strings.HasPrefix(*dir, k) {
localMountedDir = k
}
@ -78,6 +78,7 @@ func (c *commandRemoteUncache) uncacheContentData(commandEnv *CommandEnv, writer
return true // true means recursive traversal should continue
}
entry.RemoteEntry.LocalMtime = 0
entry.Chunks = nil
println(dir, entry.Name)

Loading…
Cancel
Save