This commit is contained in:
Chris Lu 2021-09-01 02:45:42 -07:00
parent d1a4e19a3f
commit 7ce97b59d8
45 changed files with 79 additions and 56 deletions

View file

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows // +build !windows
package command package command

View file

@ -1,6 +1,5 @@
// +build !linux //go:build !linux && !darwin && !freebsd
// +build !darwin // +build !linux,!darwin,!freebsd
// +build !freebsd
package command package command

View file

@ -1,3 +1,4 @@
//go:build linux || darwin || freebsd
// +build linux darwin freebsd // +build linux darwin freebsd
package command package command

View file

@ -1,3 +1,4 @@
//go:build linux || darwin || windows
// +build linux darwin windows // +build linux darwin windows
// limited GOOS due to modernc.org/libc/unistd // limited GOOS due to modernc.org/libc/unistd

View file

@ -1,3 +1,4 @@
//go:build !linux && !darwin && !windows && !s390 && !ppc64le && !mips64
// +build !linux,!darwin,!windows,!s390,!ppc64le,!mips64 // +build !linux,!darwin,!windows,!s390,!ppc64le,!mips64
// limited GOOS due to modernc.org/libc/unistd // limited GOOS due to modernc.org/libc/unistd

View file

@ -1,3 +1,4 @@
//go:build tikv
// +build tikv // +build tikv
package tikv package tikv

View file

@ -1,3 +1,4 @@
//go:build tikv
// +build tikv // +build tikv
package tikv package tikv

View file

@ -45,7 +45,7 @@ func TraverseBfs(listDirFn ListDirectoryFunc, parentPath util.FullPath, visitFn
} }
func processOneDirectory(listDirFn ListDirectoryFunc, parentPath util.FullPath, visitFn VisitFunc, dirQueue *util.Queue, dirQueueWg *sync.WaitGroup) (error) { func processOneDirectory(listDirFn ListDirectoryFunc, parentPath util.FullPath, visitFn VisitFunc, dirQueue *util.Queue, dirQueueWg *sync.WaitGroup) error {
return listDirFn(parentPath, func(dir string, name string, isDirectory bool, remoteEntry *filer_pb.RemoteEntry) error { return listDirFn(parentPath, func(dir string, name string, isDirectory bool, remoteEntry *filer_pb.RemoteEntry) error {
if err := visitFn(dir, name, isDirectory, remoteEntry); err != nil { if err := visitFn(dir, name, isDirectory, remoteEntry); err != nil {

View file

@ -1,3 +1,4 @@
//go:build rocksdb
// +build rocksdb // +build rocksdb
package weed_server package weed_server

View file

@ -167,7 +167,7 @@ func (vs *VolumeServer) doCopyFile(client volume_server_pb.VolumeServerClient, i
only check the the differ of the file size only check the the differ of the file size
todo: maybe should check the received count and deleted count of the volume todo: maybe should check the received count and deleted count of the volume
*/ */
func checkCopyFiles(originFileInf *volume_server_pb.ReadVolumeFileStatusResponse, idxFileName, datFileName string) (error) { func checkCopyFiles(originFileInf *volume_server_pb.ReadVolumeFileStatusResponse, idxFileName, datFileName string) error {
stat, err := os.Stat(idxFileName) stat, err := os.Stat(idxFileName)
if err != nil { if err != nil {
return fmt.Errorf("stat idx file %s failed: %v", idxFileName, err) return fmt.Errorf("stat idx file %s failed: %v", idxFileName, err)

View file

@ -116,7 +116,6 @@ Namenode running as service 'hdfs' with FQDN 'namenode.hadoop.docker'.
`) `)
remoteConfigureCommand.StringVar(&conf.HdfsDataTransferProtection, "hdfs.dataTransferProtection", "", "[authentication|integrity|privacy] Kerberos data transfer protection") remoteConfigureCommand.StringVar(&conf.HdfsDataTransferProtection, "hdfs.dataTransferProtection", "", "[authentication|integrity|privacy] Kerberos data transfer protection")
if err = remoteConfigureCommand.Parse(args); err != nil { if err = remoteConfigureCommand.Parse(args); err != nil {
return nil return nil
} }

View file

@ -1,3 +1,4 @@
//go:build openbsd || netbsd || plan9 || solaris
// +build openbsd netbsd plan9 solaris // +build openbsd netbsd plan9 solaris
package stats package stats

View file

@ -1,3 +1,4 @@
//go:build !windows && !openbsd && !netbsd && !plan9 && !solaris
// +build !windows,!openbsd,!netbsd,!plan9,!solaris // +build !windows,!openbsd,!netbsd,!plan9,!solaris
package stats package stats

View file

@ -1,3 +1,4 @@
//go:build !linux
// +build !linux // +build !linux
package stats package stats

View file

@ -1,3 +1,4 @@
//go:build linux
// +build linux // +build linux
package stats package stats

View file

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows // +build !windows
package memory_map package memory_map

View file

@ -1,3 +1,4 @@
//go:build windows
// +build windows // +build windows
package memory_map package memory_map

View file

@ -1,3 +1,4 @@
//go:build !linux && !windows
// +build !linux,!windows // +build !linux,!windows
package backend package backend

View file

@ -1,3 +1,4 @@
//go:build linux
// +build linux // +build linux
package backend package backend

View file

@ -1,3 +1,4 @@
//go:build windows
// +build windows // +build windows
package backend package backend

View file

@ -1,3 +1,4 @@
//go:build 5BytesOffset
// +build 5BytesOffset // +build 5BytesOffset
package needle_map package needle_map

View file

@ -1,3 +1,4 @@
//go:build !5BytesOffset
// +build !5BytesOffset // +build !5BytesOffset
package types package types

View file

@ -1,3 +1,4 @@
//go:build 5BytesOffset
// +build 5BytesOffset // +build 5BytesOffset
package types package types

View file

@ -1,3 +1,4 @@
//go:build !5BytesOffset
// +build !5BytesOffset // +build !5BytesOffset
package util package util

View file

@ -1,3 +1,4 @@
//go:build 5BytesOffset
// +build 5BytesOffset // +build 5BytesOffset
package util package util

View file

@ -1,3 +1,4 @@
//go:build linux || darwin || freebsd || netbsd || openbsd || plan9 || solaris || zos
// +build linux darwin freebsd netbsd openbsd plan9 solaris zos // +build linux darwin freebsd netbsd openbsd plan9 solaris zos
package util package util

View file

@ -1,3 +1,4 @@
//go:build windows
// +build windows // +build windows
package util package util

View file

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package grace package grace

View file

@ -1,3 +1,4 @@
//go:build plan9
// +build plan9 // +build plan9
package grace package grace