Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

close opened file

Chris Lu288016011353
diff --git a/weed/sequence/etcd_sequencer.go b/weed/sequence/etcd_sequencer.go
index 1fc378640f..c0d7fbdb6c 100644
--- a/weed/sequence/etcd_sequencer.go
+++ b/weed/sequence/etcd_sequencer.go
@@ -47,6 +47,7 @@ func NewEtcdSequencer(etcdUrls string, metaFolder string) (*EtcdSequencer, error
if nil != err {
return nil, fmt.Errorf("open sequence file fialed, %v", err)
}
+ defer file.Close()
cli, err := client.New(client.Config{
Endpoints: strings.Split(etcdUrls, ","),