Browse Source

Merge branch 'master' into mq-subscribe

mq-subscribe
chrislu 8 months ago
parent
commit
a568d128fb
  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"
)
// just for testing
// default Sequencer
type MemorySequencer struct {
counter uint64
sequenceLock sync.Mutex

2
weed/server/master_server.go

@ -347,6 +347,8 @@ func (ms *MasterServer) createSequencer(option *MasterOption) sequence.Sequencer
glog.Error(err)
seq = nil
}
case "raft":
fallthrough
default:
seq = sequence.NewMemorySequencer()
}

Loading…
Cancel
Save