comment out etcd support due to its os specific system calls

This commit is contained in:
Chris Lu
2013-11-19 01:43:16 -08:00
parent fa1bb3cee3
commit bd0c7a3d28
3 changed files with 14 additions and 12 deletions

View File

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