aboutsummaryrefslogtreecommitdiff
path: root/go/sequence/sequence.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-12-03 23:30:55 -0800
committerChris Lu <chris.lu@gmail.com>2013-12-03 23:30:55 -0800
commit2e2f426fe28f8e3d94d7d1dee3afde2655425741 (patch)
tree9862c5580b88670d2505a1752a7fb62fcaced6ea /go/sequence/sequence.go
parent5fdb1d89cebbb2f4947a1d2b356b83f90b951239 (diff)
downloadseaweedfs-2e2f426fe28f8e3d94d7d1dee3afde2655425741.tar.xz
seaweedfs-2e2f426fe28f8e3d94d7d1dee3afde2655425741.zip
clean up etcd backing for sequence persistent storage. It uses some OS
specific calls and is not OS-agnostic.
Diffstat (limited to 'go/sequence/sequence.go')
-rw-r--r--go/sequence/sequence.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/go/sequence/sequence.go b/go/sequence/sequence.go
index d86d88385..493804ec6 100644
--- a/go/sequence/sequence.go
+++ b/go/sequence/sequence.go
@@ -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