aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_remote_mount.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-09-14 23:06:44 -0700
committerchrislu <chris.lu@gmail.com>2022-09-14 23:06:44 -0700
commit21c058790010aa9224568248f2d9bf9c324b6747 (patch)
treeef2e2a1693c0563f8e44c099d1fee929f40863ff /weed/shell/command_remote_mount.go
parentc8645fd2323d97164489e0429ed140f84002e61e (diff)
downloadseaweedfs-21c058790010aa9224568248f2d9bf9c324b6747.tar.xz
seaweedfs-21c058790010aa9224568248f2d9bf9c324b6747.zip
go fmt
Diffstat (limited to 'weed/shell/command_remote_mount.go')
-rw-r--r--weed/shell/command_remote_mount.go19
1 files changed, 12 insertions, 7 deletions
diff --git a/weed/shell/command_remote_mount.go b/weed/shell/command_remote_mount.go
index 0f74729f1..00f783b49 100644
--- a/weed/shell/command_remote_mount.go
+++ b/weed/shell/command_remote_mount.go
@@ -164,15 +164,20 @@ func syncMetadata(commandEnv *CommandEnv, writer io.Writer, dir string, nonEmpty
}
// if an entry has synchronized metadata but has not synchronized content
-// entry.Attributes.FileSize == entry.RemoteEntry.RemoteSize
-// entry.Attributes.Mtime == entry.RemoteEntry.RemoteMtime
-// entry.RemoteEntry.LastLocalSyncTsNs == 0
+//
+// entry.Attributes.FileSize == entry.RemoteEntry.RemoteSize
+// entry.Attributes.Mtime == entry.RemoteEntry.RemoteMtime
+// entry.RemoteEntry.LastLocalSyncTsNs == 0
+//
// if an entry has synchronized metadata but has synchronized content before
-// entry.Attributes.FileSize == entry.RemoteEntry.RemoteSize
-// entry.Attributes.Mtime == entry.RemoteEntry.RemoteMtime
-// entry.RemoteEntry.LastLocalSyncTsNs > 0
+//
+// entry.Attributes.FileSize == entry.RemoteEntry.RemoteSize
+// entry.Attributes.Mtime == entry.RemoteEntry.RemoteMtime
+// entry.RemoteEntry.LastLocalSyncTsNs > 0
+//
// if an entry has synchronized metadata but has new updates
-// entry.Attributes.Mtime * 1,000,000,000 > entry.RemoteEntry.LastLocalSyncTsNs
+//
+// entry.Attributes.Mtime * 1,000,000,000 > entry.RemoteEntry.LastLocalSyncTsNs
func doSaveRemoteEntry(client filer_pb.SeaweedFilerClient, localDir string, existingEntry *filer_pb.Entry, remoteEntry *filer_pb.RemoteEntry) error {
existingEntry.RemoteEntry = remoteEntry
existingEntry.Attributes.FileSize = uint64(remoteEntry.RemoteSize)