aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_loading.go
diff options
context:
space:
mode:
authorbingoohuang <bingoo.huang@gmail.com>2021-02-07 09:00:03 +0800
committerbingoohuang <bingoo.huang@gmail.com>2021-02-07 09:00:03 +0800
commit94ea3bd3a56dd16583c33a3baec17a952b58c6bb (patch)
tree5b072ae5139f5324f3c8387a11fe27f9da3c5e6b /weed/storage/volume_loading.go
parent5138d3954fea88cc2131f0d86b14e3a777de29d7 (diff)
downloadseaweedfs-94ea3bd3a56dd16583c33a3baec17a952b58c6bb.tar.xz
seaweedfs-94ea3bd3a56dd16583c33a3baec17a952b58c6bb.zip
renaming NeedleMapType to NeedleMapKind
Diffstat (limited to 'weed/storage/volume_loading.go')
-rw-r--r--weed/storage/volume_loading.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go
index a6efc630d..52a50a98c 100644
--- a/weed/storage/volume_loading.go
+++ b/weed/storage/volume_loading.go
@@ -14,7 +14,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/util"
)
-func loadVolumeWithoutIndex(dirname string, collection string, id needle.VolumeId, needleMapKind NeedleMapType) (v *Volume, err error) {
+func loadVolumeWithoutIndex(dirname string, collection string, id needle.VolumeId, needleMapKind NeedleMapKind) (v *Volume, err error) {
v = &Volume{dir: dirname, Collection: collection, Id: id}
v.SuperBlock = super_block.SuperBlock{}
v.needleMapKind = needleMapKind
@@ -22,7 +22,7 @@ func loadVolumeWithoutIndex(dirname string, collection string, id needle.VolumeI
return
}
-func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind NeedleMapType, preallocate int64) (err error) {
+func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind NeedleMapKind, preallocate int64) (err error) {
alreadyHasSuperBlock := false
hasLoadedVolume := false