This commit is contained in:
Chris Lu 2020-06-05 15:27:10 -07:00
parent 03c2f03509
commit 45a9d852d3
11 changed files with 25 additions and 24 deletions

View file

@ -34,7 +34,7 @@ func runMount(cmd *Command, args []string) bool {
return false return false
} }
if len(args)>0 { if len(args) > 0 {
return false return false
} }

View file

@ -208,7 +208,7 @@ func runServer(cmd *Command, args []string) bool {
// start volume server // start volume server
{ {
go serverOptions.v.startVolumeServer(*volumeDataFolders, *volumeMaxDataVolumeCounts, *serverWhiteListOption, *volumeMinFreeSpacePercent ) go serverOptions.v.startVolumeServer(*volumeDataFolders, *volumeMaxDataVolumeCounts, *serverWhiteListOption, *volumeMinFreeSpacePercent)
} }

View file

@ -3,8 +3,8 @@ package msgclient
import ( import (
"context" "context"
"io" "io"
"time"
"sync" "sync"
"time"
"github.com/chrislusf/seaweedfs/weed/messaging/broker" "github.com/chrislusf/seaweedfs/weed/messaging/broker"
"github.com/chrislusf/seaweedfs/weed/pb/messaging_pb" "github.com/chrislusf/seaweedfs/weed/pb/messaging_pb"
@ -26,7 +26,7 @@ func (mc *MessagingClient) NewSubscriber(subscriberId, namespace, topic string,
subscriberCancels := make([]context.CancelFunc, topicConfiguration.PartitionCount) subscriberCancels := make([]context.CancelFunc, topicConfiguration.PartitionCount)
for i := 0; i < int(topicConfiguration.PartitionCount); i++ { for i := 0; i < int(topicConfiguration.PartitionCount); i++ {
if partitionId>=0 && i != partitionId { if partitionId >= 0 && i != partitionId {
continue continue
} }
tp := broker.TopicPartition{ tp := broker.TopicPartition{

View file

@ -6,6 +6,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
) )
var ( var (
kernel32 = windows.NewLazySystemDLL("Kernel32.dll") kernel32 = windows.NewLazySystemDLL("Kernel32.dll")
getDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW") getDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW")