reduce ambiguity about use memory_sequencer (#5555)

This commit is contained in:
shenxingwuying 2024-04-30 12:51:00 +08:00 committed by GitHub
parent 36a1cf0361
commit ee25ada732
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import (
"sync"
)
// just for testing
// default Sequencer
type MemorySequencer struct {
counter uint64
sequenceLock sync.Mutex

View File

@ -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()
}