mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
reduce ambiguity about use memory_sequencer (#5555)
This commit is contained in:
parent
36a1cf0361
commit
ee25ada732
@ -4,7 +4,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
// just for testing
|
// default Sequencer
|
||||||
type MemorySequencer struct {
|
type MemorySequencer struct {
|
||||||
counter uint64
|
counter uint64
|
||||||
sequenceLock sync.Mutex
|
sequenceLock sync.Mutex
|
||||||
|
@ -59,7 +59,7 @@ type MasterServer struct {
|
|||||||
|
|
||||||
preallocateSize int64
|
preallocateSize int64
|
||||||
|
|
||||||
Topo *topology.Topology
|
Topo *topology.Topology
|
||||||
vg *topology.VolumeGrowth
|
vg *topology.VolumeGrowth
|
||||||
volumeGrowthRequestChan chan *topology.VolumeGrowRequest
|
volumeGrowthRequestChan chan *topology.VolumeGrowRequest
|
||||||
|
|
||||||
@ -347,6 +347,8 @@ func (ms *MasterServer) createSequencer(option *MasterOption) sequence.Sequencer
|
|||||||
glog.Error(err)
|
glog.Error(err)
|
||||||
seq = nil
|
seq = nil
|
||||||
}
|
}
|
||||||
|
case "raft":
|
||||||
|
fallthrough
|
||||||
default:
|
default:
|
||||||
seq = sequence.NewMemorySequencer()
|
seq = sequence.NewMemorySequencer()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user