diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-08 22:30:36 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-08 22:30:36 -0700 |
| commit | c5f38c365d7d5cd4dc74e5cafefc0c461a0d478e (patch) | |
| tree | 3e36e477503bd355e1a3d43af7a462eb653735d4 /weed/command/filer_backup.go | |
| parent | df85f7a1ebf81e1f8fe8bed5089bf5be71d7c76f (diff) | |
| download | seaweedfs-c5f38c365d7d5cd4dc74e5cafefc0c461a0d478e.tar.xz seaweedfs-c5f38c365d7d5cd4dc74e5cafefc0c461a0d478e.zip | |
go fmt
Diffstat (limited to 'weed/command/filer_backup.go')
| -rw-r--r-- | weed/command/filer_backup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/filer_backup.go b/weed/command/filer_backup.go index 2828ccb39..0c450181b 100644 --- a/weed/command/filer_backup.go +++ b/weed/command/filer_backup.go @@ -107,12 +107,12 @@ func doFilerBackup(grpcDialOption grpc.DialOption, backupOption *FilerBackupOpti processEventFn := genProcessFunction(sourcePath, targetPath, dataSink, debug) - processEventFnWithOffset := pb.AddOffsetFunc(processEventFn, 3 * time.Second, func(counter int64, lastTsNs int64) error { + processEventFnWithOffset := pb.AddOffsetFunc(processEventFn, 3*time.Second, func(counter int64, lastTsNs int64) error { glog.V(0).Infof("backup %s progressed to %v %0.2f/sec", sourceFiler, time.Unix(0, lastTsNs), float64(counter)/float64(3)) return setOffset(grpcDialOption, sourceFiler, BackupKeyPrefix, int32(sinkId), lastTsNs) }) - return pb.FollowMetadata(sourceFiler, grpcDialOption, "backup_" + dataSink.GetName(), + return pb.FollowMetadata(sourceFiler, grpcDialOption, "backup_"+dataSink.GetName(), sourcePath, startFrom.UnixNano(), 0, processEventFnWithOffset, false) } |
