Browse Source

remember sync time

pull/2321/head
Chris Lu 3 years ago
parent
commit
796b2eb929
  1. 1
      weed/command/filer_remote_sync_dir.go

1
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{

Loading…
Cancel
Save