diff --git a/weed/sequence/memory_sequencer.go b/weed/sequence/memory_sequencer.go index e20c29cc7..6e879bd79 100644 --- a/weed/sequence/memory_sequencer.go +++ b/weed/sequence/memory_sequencer.go @@ -4,7 +4,7 @@ import ( "sync" ) -// just for testing +// default Sequencer type MemorySequencer struct { counter uint64 sequenceLock sync.Mutex diff --git a/weed/server/master_server.go b/weed/server/master_server.go index f89c9598f..580cdfed2 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -59,7 +59,7 @@ type MasterServer struct { preallocateSize int64 - Topo *topology.Topology + Topo *topology.Topology vg *topology.VolumeGrowth volumeGrowthRequestChan chan *topology.VolumeGrowRequest @@ -347,6 +347,8 @@ func (ms *MasterServer) createSequencer(option *MasterOption) sequence.Sequencer glog.Error(err) seq = nil } + case "raft": + fallthrough default: seq = sequence.NewMemorySequencer() }