Browse Source

reduce ambiguity about use memory_sequencer (#5555)

pull/5698/head
shenxingwuying 8 months ago
committed by GitHub
parent
commit
ee25ada732
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/sequence/memory_sequencer.go
  2. 2
      weed/server/master_server.go

2
weed/sequence/memory_sequencer.go

@ -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

2
weed/server/master_server.go

@ -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…
Cancel
Save