aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_remote_uncache.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-14 21:46:34 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-14 21:46:34 -0700
commitc34747c79d99d8a08bea31b7339b17dca6fad44d (patch)
treec4c119eef25e06e778eff894ec258e607a0774b4 /weed/shell/command_remote_uncache.go
parentcb53802752919fd91342927b401f8f66652c79ec (diff)
downloadseaweedfs-c34747c79d99d8a08bea31b7339b17dca6fad44d.tar.xz
seaweedfs-c34747c79d99d8a08bea31b7339b17dca6fad44d.zip
rename, fix wrong logic.
Diffstat (limited to 'weed/shell/command_remote_uncache.go')
-rw-r--r--weed/shell/command_remote_uncache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go
index 733218379..0e5152f78 100644
--- a/weed/shell/command_remote_uncache.go
+++ b/weed/shell/command_remote_uncache.go
@@ -89,11 +89,11 @@ func (c *commandRemoteUncache) uncacheContentData(commandEnv *CommandEnv, writer
return true
}
- if entry.RemoteEntry.LocalMtime < entry.Attributes.Mtime {
+ if entry.RemoteEntry.LastLocalSyncTsNs/1e9 < entry.Attributes.Mtime {
return true // should not uncache an entry that is not synchronized with remote
}
- entry.RemoteEntry.LocalMtime = 0
+ entry.RemoteEntry.LastLocalSyncTsNs = 0
entry.Chunks = nil
println(dir, entry.Name)