Add InMemory to Volume Grow structure

This commit is contained in:
j.laycock
2019-09-03 18:19:02 +01:00
parent 1f01eb78e8
commit cbd0a98fa1
5 changed files with 5 additions and 11 deletions

View File

@@ -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) {