mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 17:43:35 +08:00
comment out etcd support due to its os specific system calls
This commit is contained in:
@@ -34,12 +34,12 @@ func NewFileSequencer(filepath string) (m *SequencerImpl) {
|
||||
return
|
||||
}
|
||||
|
||||
func NewEtcdSequencer(etcdCluster string) (m *SequencerImpl) {
|
||||
m = &SequencerImpl{fileFullPath: "/weedfs/default/sequence"}
|
||||
m.metaStore = &metastore.MetaStore{metastore.NewMetaStoreEtcdBacking(etcdCluster)}
|
||||
m.initilize()
|
||||
return
|
||||
}
|
||||
//func NewEtcdSequencer(etcdCluster string) (m *SequencerImpl) {
|
||||
// m = &SequencerImpl{fileFullPath: "/weedfs/default/sequence"}
|
||||
// m.metaStore = &metastore.MetaStore{metastore.NewMetaStoreEtcdBacking(etcdCluster)}
|
||||
// m.initilize()
|
||||
// return
|
||||
//}
|
||||
|
||||
func (m *SequencerImpl) initilize() {
|
||||
if !m.metaStore.Has(m.fileFullPath) {
|
||||
|
Reference in New Issue
Block a user