mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-24 19:53:35 +08:00
clean up etcd backing for sequence persistent storage. It uses some OS
specific calls and is not OS-agnostic.
This commit is contained in:
@@ -34,13 +34,6 @@ 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 (m *SequencerImpl) initilize() {
|
||||
if !m.metaStore.Has(m.fileFullPath) {
|
||||
m.FileIdSequence = FileIdSaveInterval
|
||||
|
Reference in New Issue
Block a user