clean up etcd backing for sequence persistent storage. It uses some OS

specific calls and is not OS-agnostic.
This commit is contained in:
Chris Lu
2013-12-03 23:30:55 -08:00
parent 5fdb1d89ce
commit 2e2f426fe2
5 changed files with 0 additions and 70 deletions

View File

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