shenxingwuying
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
2 deletions
-
weed/sequence/memory_sequencer.go
-
weed/server/master_server.go
|
|
@ -4,7 +4,7 @@ import ( |
|
|
|
"sync" |
|
|
|
) |
|
|
|
|
|
|
|
// just for testing
|
|
|
|
// default Sequencer
|
|
|
|
type MemorySequencer struct { |
|
|
|
counter uint64 |
|
|
|
sequenceLock sync.Mutex |
|
|
|
|
|
@ -347,6 +347,8 @@ func (ms *MasterServer) createSequencer(option *MasterOption) sequence.Sequencer |
|
|
|
glog.Error(err) |
|
|
|
seq = nil |
|
|
|
} |
|
|
|
case "raft": |
|
|
|
fallthrough |
|
|
|
default: |
|
|
|
seq = sequence.NewMemorySequencer() |
|
|
|
} |
|
|
|