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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
move to getter setter file
Chris Lu01661ec6a77e
diff --git a/weed/util/bptree/bpmap.go b/weed/util/bptree/bpmap.goindex 9b391fd887..a68eae2550 100644--- a/weed/util/bptree/bpmap.go+++ b/weed/util/bptree/bpmap.go@@ -9,13 +9,6 @@ import (*/type BpMap BpTree-func (self *BpMap) getRoot() *BpNode {- return self.root-}-func (self *BpMap) setRoot(root *BpNode) {- self.root = root-}-func NewBpMap(node_size int) *BpMap {return &BpMap{root: NewLeaf(node_size),diff --git a/weed/util/bptree/bptree.go b/weed/util/bptree/bptree.goindex 68ee087203..405e93ac71 100644--- a/weed/util/bptree/bptree.go+++ b/weed/util/bptree/bptree.go@@ -10,13 +10,6 @@ type BpTree struct {root *BpNode}-func (self *BpTree) getRoot() *BpNode {- return self.root-}-func (self *BpTree) setRoot(root *BpNode) {- self.root = root-}-type loc_iterator func() (i int, leaf *BpNode, li loc_iterator)func NewBpTree(node_size int) *BpTree {diff --git a/weed/util/bptree/getter_setter.go b/weed/util/bptree/getter_setter.gonew file mode 100644index 0000000000..cd5c8344bb--- /dev/null+++ b/weed/util/bptree/getter_setter.go@@ -0,0 +1,15 @@+package bptree++func (self *BpMap) getRoot() *BpNode {+ return self.root+}+func (self *BpMap) setRoot(root *BpNode) {+ self.root = root+}++func (self *BpTree) getRoot() *BpNode {+ return self.root+}+func (self *BpTree) setRoot(root *BpNode) {+ self.root = root+}