aboutsummaryrefslogtreecommitdiff
path: root/weed/storage
diff options
context:
space:
mode:
authorj.laycock <joseph.laycock@4sightimaging.com>2019-09-03 18:19:02 +0100
committerj.laycock <joseph.laycock@4sightimaging.com>2019-09-03 18:19:02 +0100
commitcbd0a98fa12c20f5ace09bda44d2d2700d8dc74e (patch)
tree3cafc98fe53bf11b6245ee4bfddc5f1c78806039 /weed/storage
parent1f01eb78e81454c54569d8c7baaca115982a87c2 (diff)
downloadseaweedfs-cbd0a98fa12c20f5ace09bda44d2d2700d8dc74e.tar.xz
seaweedfs-cbd0a98fa12c20f5ace09bda44d2d2700d8dc74e.zip
Add InMemory to Volume Grow structure
Diffstat (limited to 'weed/storage')
-rw-r--r--weed/storage/store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/store.go b/weed/storage/store.go
index 5f55db31e..89b92f229 100644
--- a/weed/storage/store.go
+++ b/weed/storage/store.go
@@ -59,7 +59,7 @@ func NewStore(grpcDialOption grpc.DialOption, port int, ip, publicUrl string, di
return
}
-func (s *Store) AddVolume(volumeId needle.VolumeId, collection string, needleMapKind NeedleMapType, replicaPlacement string, ttlString string, preallocate int64, in_memory bool) error {
+func (s *Store) AddVolume(volumeId needle.VolumeId, collection string, needleMapKind NeedleMapType, replicaPlacement string, ttlString string, preallocate int64, memoryMapped bool) error {
rt, e := NewReplicaPlacementFromString(replicaPlacement)
if e != nil {
return e
@@ -68,7 +68,7 @@ func (s *Store) AddVolume(volumeId needle.VolumeId, collection string, needleMap
if e != nil {
return e
}
- e = s.addVolume(volumeId, collection, needleMapKind, rt, ttl, preallocate, in_memory)
+ e = s.addVolume(volumeId, collection, needleMapKind, rt, ttl, preallocate, memoryMapped)
return e
}
func (s *Store) DeleteCollection(collection string) (e error) {