diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-09 15:24:21 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-09 15:24:21 -0700 |
| commit | 02f728cb54c9410ff36c01381482628b73863682 (patch) | |
| tree | 71d5da18d119342b62a42512c6c1abefe8187e53 | |
| parent | 8d3e2757358ebb1ce3be270860d2937f2f546e00 (diff) | |
| download | seaweedfs-02f728cb54c9410ff36c01381482628b73863682.tar.xz seaweedfs-02f728cb54c9410ff36c01381482628b73863682.zip | |
fix bug with remote.uncache
| -rw-r--r-- | weed/shell/command_remote_uncache.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go index 7fc70b7a3..64cc1472c 100644 --- a/weed/shell/command_remote_uncache.go +++ b/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) |
