1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-26 20:38:16 +02:00
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
package command

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
//go:build tikv
// +build 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 {
if err := visitFn(dir, name, isDirectory, remoteEntry); err != nil {

View file

@ -1,3 +1,4 @@
//go:build rocksdb
// +build rocksdb
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
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)
if err != nil {
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")
if err = remoteConfigureCommand.Parse(args); err != nil {
return nil
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
//go:build 5BytesOffset
// +build 5BytesOffset
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
package util

View file

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

View file

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

View file

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