aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_remote_sync_dir.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-04 13:46:22 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-04 13:46:22 -0700
commit796b2eb92967b8d1b94c1facc4842e9f177431d6 (patch)
treea5f01e9c2d9e00ee82f8644e84728f5f890c0a72 /weed/command/filer_remote_sync_dir.go
parent53b9b521c9f385d5ed606c3b6b46ba782fa19ee1 (diff)
downloadseaweedfs-796b2eb92967b8d1b94c1facc4842e9f177431d6.tar.xz
seaweedfs-796b2eb92967b8d1b94c1facc4842e9f177431d6.zip
remember sync time
Diffstat (limited to 'weed/command/filer_remote_sync_dir.go')
-rw-r--r--weed/command/filer_remote_sync_dir.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/filer_remote_sync_dir.go b/weed/command/filer_remote_sync_dir.go
index 65edb76db..2d18a9ab7 100644
--- a/weed/command/filer_remote_sync_dir.go
+++ b/weed/command/filer_remote_sync_dir.go
@@ -209,6 +209,7 @@ func shouldSendToRemote(entry *filer_pb.Entry) bool {
}
func updateLocalEntry(filerClient filer_pb.FilerClient, dir string, entry *filer_pb.Entry, remoteEntry *filer_pb.RemoteEntry) error {
+ remoteEntry.LastLocalSyncTsNs = time.Now().UnixNano()
entry.RemoteEntry = remoteEntry
return filerClient.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error {
_, err := client.UpdateEntry(context.Background(), &filer_pb.UpdateEntryRequest{