aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.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.go
parent5138d3954fea88cc2131f0d86b14e3a777de29d7 (diff)
downloadseaweedfs-94ea3bd3a56dd16583c33a3baec17a952b58c6bb.tar.xz
seaweedfs-94ea3bd3a56dd16583c33a3baec17a952b58c6bb.zip
renaming NeedleMapType to NeedleMapKind
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 80a74c3e3..d86e25885 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -25,7 +25,7 @@ type Volume struct {
Collection string
DataBackend backend.BackendStorageFile
nm NeedleMapper
- needleMapKind NeedleMapType
+ needleMapKind NeedleMapKind
noWriteOrDelete bool // if readonly, either noWriteOrDelete or noWriteCanDelete
noWriteCanDelete bool // if readonly, either noWriteOrDelete or noWriteCanDelete
noWriteLock sync.RWMutex
@@ -50,7 +50,7 @@ type Volume struct {
lastIoError error
}
-func NewVolume(dirname string, dirIdx string, collection string, id needle.VolumeId, needleMapKind NeedleMapType, replicaPlacement *super_block.ReplicaPlacement, ttl *needle.TTL, preallocate int64, memoryMapMaxSizeMb uint32) (v *Volume, e error) {
+func NewVolume(dirname string, dirIdx string, collection string, id needle.VolumeId, needleMapKind NeedleMapKind, replicaPlacement *super_block.ReplicaPlacement, ttl *needle.TTL, preallocate int64, memoryMapMaxSizeMb uint32) (v *Volume, e error) {
// if replicaPlacement is nil, the superblock will be loaded from disk
v = &Volume{dir: dirname, dirIdx: dirIdx, Collection: collection, Id: id, MemoryMapMaxSizeMb: memoryMapMaxSizeMb,
asyncRequestsChan: make(chan *needle.AsyncRequest, 128)}